CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: List Box Help

  1. #1
    Join Date
    Jan 2000
    Posts
    19

    List Box Help

    I would like to get data from my Access database and have it come up in a list box similer to a grid And i need a bar in the list box to pick a row of text.


  2. #2
    Join Date
    Nov 1999
    Location
    US NJ
    Posts
    113

    Re: List Box Help

    You will have to use List View.

    I am puting here a sample. You have to set up the ListView from Properties : View = lvwReport

    Dim itmX As ListItem

    ListView.ColumnHeaders.Add , , "Fields", 1500
    ListView.ColumnHeaders.Add , , "Code", 2500

    Set itmX = frmList.lvw1.ListItems.Add(, , "Field")itmX.SubItems(1) = Left(CodesForFields, "Other Field")

    Check your MSDN Help for more info

    Good luck


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

Featured