Results 1 to 2 of 2

Thread: listbox ID

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    225

    listbox ID

    Is there any way to assign a primary key id to a member of a listbox. I am getting my data from a database and want to assign each line in my listbox with it's corresponding id so that I can later on access the correct record in the database.

    I have done this in VB6 using itemdata and newindex but can't seem to find a comparable method in VB.net.

    Does anyone know how to do this?

    Thanks

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Search the forums or the Help for DisplayMember and ValueMember properties of the listbox.

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