How to hide the drop-down arrow on a combo box

smartcard

New member
Local time
Today, 11:31
Joined
Oct 4, 2005
Messages
4
Is there a method you can use to hide the drop-down arrow on a combo box until the combo box is selected?
 
No, I don't think there is... Why would you want to do this?
 
I want am displaying all my records in one tab, in a list mode. The drop-down arrow looks very ugly sine there are many row's of date.

Or is there any way I can make my from read-only so that this drop-down arrow will not appear?

Tks
 
I want am displaying all my records in one tab, in a list mode. The drop-down arrow looks very ugly sine there are many row's of date.

Or is there any way I can make my from read-only so that this drop-down arrow will not appear?

Tks

Create a textbox with the same settings as the combobox for the following properties: ControlSource, Left, Top, Width and Height.

In Design view, set the textbox Visible property to True, and the combobox Visible property to False.

In the textbox's Got Focus Event, set textbox.visible=false and combobox.visible=true; in the combobox's Lost Focus Event, set the controls' visible properties vice versa.
 
I don't think it's even necessary to hide them - just create the text box and put the combo box behind it - then in the GotFocus event of the text box, set the focus to the combo - it will surface for the duration it has the focus, then disappear behind the text box again.
 
Hey there Smartcard,

I had a very similar problem to the one you are facing now and found that there was no easy way to do this. What I ended up having to do was use a textbox and bind it to the combobox which was set to invisible! Less than ideal I know but it seems there was no other easier way.


Andrew
 

Users who are viewing this thread

Back
Top Bottom