Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Question...

Status
Not open for further replies.

PogoWolf

Programmer
Mar 2, 2001
351
US
Can anyone give me some pointers on how to read the selection from a CboBox directly after a user makes the
selection?

or...

what event is fired off when a user makes a selection?


******
Darkness... Bleakness...
and Plastic forks...
--The PogoWolf
 
cmbbox_Click is fired.
cmbbox.text has text selected
cmbbox.listindex has the index (0 to cmbbox.ubound) of the selected item.
listindex could be -1 if ESC was pressed.
Code:
Private cmbbox_click Sub
if cmbbox.listindex = -1 then
    strSelected = cmbbox.text
    ....empty
else 
    strSelected = cmbbox.text
end if
end sub
 
Great Thanks! ******
Darkness... Bleakness...
and Plastic forks...
--The PogoWolf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top