Results 1 to 2 of 2

Thread: DataCombo Box - Getting integer position

  1. #1
    Guest

    Hi, I was wondering how to retrieve the integer position
    in the datacombo box list. so when a user selects item #3 in the combo box, I can get the number 3. In C++, there is an ItemIndex property to do this. Can I do this in VB?

    Mark

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496

    .

    Code:
    Private Sub Command1_Click()
    Text1.Text = Combo1.ListIndex + 1
    End Sub

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