Results 1 to 5 of 5

Thread: ******RESOLVED******combobox

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Posts
    34

    ******RESOLVED******combobox

    How can I detect the row number that a user has chosen with a combobox?

    Thanks!
    Last edited by iwantaplaystati; Aug 30th, 2002 at 09:57 AM.

  2. #2
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159
    Code:
    Private Sub Combo1_Click()
        MsgBox Combo1.ListIndex
    End Sub

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    May have to add 1 to that though. Because that returns the ListIndex which I assume is Zero based...meaning the first row will be 0, the second will be 1, etc...
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Addicted Member Peter1's Avatar
    Join Date
    Aug 2002
    Posts
    166
    Use its ListIndex property.

    Pete

    Edit: Why am i so slow at this??

  5. #5

    Thread Starter
    Member
    Join Date
    Aug 2002
    Posts
    34

    Talking

    thanks guys!

    All is working not

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