Combobox problem

Could someone please give me an example on combobox control atleast
how to use that OnSelect(Item As Long, string As String) thing?
thanks
2,858 views 3 replies
Reply #1 Top
Oh it works like that
so you should do two variables, for example number and word
then:

Sub Control_OnSelect(number, word)
MsgBox number & " " & word
End Sub

and when you choose one of the list msgbox says its number from start and which you have chosen..

should have relized it earlier
Reply #2 Top
Example:

In your script, which you have assigned to be a DesktopX Combobox control:

Sub Control_OnSelect(Item,String)
If String = "FirstSelection" Then
MsgBox("First selected")
End If
MsgBox(CStr(Item)&" is the number.")
End Sub

Note that the Item parameter is zero-based (zero is the first item).