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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does anyone know how to disable jus

Status
Not open for further replies.

granni

Programmer
Nov 8, 2000
36
SG
Does anyone know how to disable just the dropdown button in a ComboBox Control? I wanted a way to disallow the user to dropdown the combo list.

I also need to move the same combo box at run time, i cannnot do that part too? any help will be deeply appreciated, thanks.
 
I'm not 100% sure what you are asking but I think you need the command,

EXAMPLE:
Combo1.enabled = false

and to move the box at runtime,

EXAMPLE:
Combo1.left = 500
combo1.top = 500

Combo1 is the name you have given the object
Hope this helps
Carl

 
sorri i do not wish to disable the whole combo box, jus to ensure that nothing happens when the user clikc the button
but i figured it out

Thanks

but how do i have mouseup, mousedown, and mousemove for combo?
 
When you are in the code screen for your form, select the combo box you are using at the top on the left hand side and then you can choose all the events for that object in the drop down list next to it on the right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top