opposite of .dropdown

hello,

how to close a combobox with code?

thanks!
LVL 3
MootherAsked:
Who is Participating?
 
Rey Obrero (Capricorn1)Connect With a Mentor Commented:
set the focus to other control.

me.othercontrolname.setfocus

the dropdown automatically hides once the combo box lost the focus
0
 
Rey Obrero (Capricorn1)Connect With a Mentor Commented:
to clear a combo selection
me.comboname=""
0
 
LennyGrayConnect With a Mentor Commented:
as soon as you click your mouse, whether by selecting somethingfrom the combobox or when you click on another control the combobox closes.

In what instance does the combobox stay open in your application where you need ot to close?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
MootherAuthor Commented:
@ lenny...

i have .dropdown on OnChange... when i click-select a value the combo doesnt close....

.dropdown is nice but not if it stays irritatingly open!
0
 
Rey Obrero (Capricorn1)Connect With a Mentor Commented:
moother

try moving the codes in the enter or focus event of the combo.
0
 
LennyGrayConnect With a Mentor Commented:
is the OnChange Event a form event or a control event? Under what circumstances exactly do you want the combobox to drop down?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.