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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.