ListView Control



Hello.

I've got a ListView control that I'm trying to use to display a list of
strings.

Only one column vertically is needed. Need it wide enough to display at
least 50 characters per row.

I'm using this control so that I can determine when someone clicks on one of
the strings, to perform some action.

Also wanted to be able to color each string differently from another, which
is why I assume I need this control over a regular list control.

But I have a problem getting the whole string to show. When I run my
program, it only shows part of the string with "..." at the end. If I click
on it, then it shows the whole string. This is not what I need. Would like
it to show the whole sentence.

For example, a list of string might be:

12/04/2007 (2345) -> 12/09/2007 (1423) - Trend Line
12/10/2007 (1456) -> 12/23/2007 (2388) - Trend Line
01/03/1999 (123.77) -> 03/18/2001 (155.78) - Channel
....

When I run the program, it may only show...

12/04/2007 (2345) ...
12/10/2007 (1456) ...
01/03/1999 (123.7 ...

I've been trying everything I can think of. Why is my display being
truncated? How do I get this control to show the whole sentence, one per
row, and only one column of these sentences?

Am I using the wrong control? Remember, I need to be able to color code
these lines independently.

Thanks.

Webbiz




.



Relevant Pages

  • Re: CreateEventProc error
    ... Private Sub BuildDisplayForm(strPath As String, ... Dim qdf As QueryDef, qdfControls As QueryDef ... Dim ctl As Control, ctlLabel As Control, ctlParent As Control ... Dim strFilter As String, strSuffix As String, strParentName As String, ...
    (microsoft.public.access.forms)
  • Re: unable to load WinSocket dll in Excel Visual Basic Editor
    ... in my "com controls" list but as soon as I try to add the winsock control I ... may or not need the alias portion of the library definiation. ... Public Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias ... (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, ...
    (microsoft.public.excel.programming)
  • Having trouble with multi-select list box in Access
    ... Const mstrcRange_Begin As String ... name of a control that represents the End part of a range ... On Error GoTo ErrHandler ...
    (microsoft.public.access.gettingstarted)
  • Re: All Menu Navigation
    ... i based the implementation on sample code from http://www.asp.net/CSSAdapters/Menu.aspx, which shows how to create decent HTML for a Menu control bound to a SiteMapDataSource. ... public void RenderBeginTag(HtmlTextWriter writer, string cssClass) ... static public void RemoveProblemTypes ...
    (microsoft.public.dotnet.framework.aspnet)
  • Homework help for If Then Else statements Could someone check my work?
    ... the CarMakeLabel control if the CarTextBox control contains the string ... number that is less than 0; otherwise, display the string "Valid Number". ... ShippingLabel control if the strState variable contains the string "Hawaii" ...
    (microsoft.public.dotnet.languages.vb)