Results 1 to 3 of 3

Thread: ListItem Bold

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Location
    Viet Nam
    Posts
    98

    ListItem Bold

    I put a listview named lst on a form and write below code
    Code:
    Private Sub Form_Load()
        Dim lvItem As ListItem
        Lst.view = 3 'lvwReport
        Lst.ColumnHeaders.Add Text:="Contacts"
        For i = 1 To 1000 'olAddr.AddressEntries.Count
            Set lvItem = Lst.ListItems.Add(Text:="A" & i)
            lvItem.Bold = True 
        Next
    End Sub
    When I run the form,every Item is bold but when I select an Item, If the length of item text is greater than 3 (example A123) the text will become A1....
    I dont know how to correct it?
    anyone help me?

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    I pasted your code into a new project and it worked fine for me....

  3. #3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width