Combo box with no arrow button?

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

Hello,

Is there such a control: a combo box with no arrow button?
I would like to use that.

Thanks,

Michael
 
Hello,

Is there such a control: a combo box with no arrow button?
I would like to use that.

Thanks,

Michael

There is no such thing.
What you can do is place a label over the arrow to hide it. Set it's
BackStyle to Normal, and it's BackColor to match the combo or the
form's section color.

Why not use a regular text control?
 
Dear Michael:

Here's a quote from a post by Jeff Conrad which itself quotes previous

The only way I've heard of is to hide it with another text box or label
control as you mentioned.
Here are some past posts by Access MVPs Ken Snell, Cheryl Fischer, and FredG
on this subject:

Jeff Conrad
If you're trying to hide the drop-down arrow, use a small trick to make it
appear as if the combo box has been changed to a textbox:

Create a box on the form, and size it so that it will fit over the arrow
part of the combo box. Place the control on top of the arrow part of the
combo box. Be sure that it's set to be on top of the combo box control (move
to front). Have the background of this box be the same as the background of
the detail part of your form. Set its visible property to yes.

When the form is viewed, the combo box will appear as if it's a textbox. The
user won't be able to click the "dropdown" arrow because the box prevents
access to it.

In your code, when you want to "turn" the "textbox" into a combo box, set
the visibility property of this box to No. Set it back to Yes when you want
to "turn" it back into a textbox.

See this KB article for more info:

http://support.microsoft.com/default.aspx?scid=kb;en-us;325233
[/QUOTE][/QUOTE][/QUOTE]

If you want to hide the arrow, make a little label of the same color as your
form's back color and position it carefully over the arrow.

Or, in addition to having the locked property = True, set the Enabled
property of the control to False.

--
Cheryl Fischer
Law/Sys Associates
Houston, TX

A Datasheet view and a Form View are different.

See Microsoft Knowledgebase article:
'ACC: How to Hide the Combo Box Drop-Down Arrow on a Form'
http://support.microsoft.com/default.aspx?scid=kb;en-us;109724
[/QUOTE][/QUOTE][/QUOTE]
 
Wow, I've been quoted from other quotes.
I feel half-fulfilled now.
<g>

--
Jeff Conrad
Access Junkie
Bend, Oregon

Fred Boer said:
Dear Michael:

Here's a quote from a post by Jeff Conrad which itself quotes previous


The only way I've heard of is to hide it with another text box or label
control as you mentioned.
Here are some past posts by Access MVPs Ken Snell, Cheryl Fischer, and FredG
on this subject:

Jeff Conrad

If you're trying to hide the drop-down arrow, use a small trick to make it
appear as if the combo box has been changed to a textbox:

Create a box on the form, and size it so that it will fit over the arrow
part of the combo box. Place the control on top of the arrow part of the
combo box. Be sure that it's set to be on top of the combo box control (move
to front). Have the background of this box be the same as the background of
the detail part of your form. Set its visible property to yes.

When the form is viewed, the combo box will appear as if it's a textbox. The
user won't be able to click the "dropdown" arrow because the box prevents
access to it.

In your code, when you want to "turn" the "textbox" into a combo box, set
the visibility property of this box to No. Set it back to Yes when you want
to "turn" it back into a textbox.

See this KB article for more info:

http://support.microsoft.com/default.aspx?scid=kb;en-us;325233
[/QUOTE]

If you want to hide the arrow, make a little label of the same color as your
form's back color and position it carefully over the arrow.

Or, in addition to having the locked property = True, set the Enabled
property of the control to False.

--
Cheryl Fischer
Law/Sys Associates
Houston, TX

A Datasheet view and a Form View are different.

See Microsoft Knowledgebase article:
'ACC: How to Hide the Combo Box Drop-Down Arrow on a Form'
http://support.microsoft.com/default.aspx?scid=kb;en-us;109724
[/QUOTE][/QUOTE]


Michael said:
Hello,

Is there such a control: a combo box with no arrow button?
I would like to use that.

Thanks,

Michael
[/QUOTE]
 
Hello

In my application, all combo boxes are set to limit to
list.

This field is now a text box for the users to enter. But I
would like them to be able to partialy write and select
from previous entries (from a history table).

I dont want the users to be confused by thinking that they
have to choose from the list. They are free to enter any
text in that place, an new text will be added to the
history table.

So this is why I would like to always hide the arrow
button on the combo box.

I tried masking it as suggested, but when the combo box as
focus, then arrow button reappears.

Are there any other solution?
How about create a custom control combo box with no button?
Is it hard?

Thanks,

Michael
 
<Chuckle> Well, I'm looking forward to seeing someone quote me, quoting you,
quoting FredG...

Cheers!
Fred

Jeff Conrad said:
Wow, I've been quoted from other quotes.
I feel half-fulfilled now.
<g>

--
Jeff Conrad
Access Junkie
Bend, Oregon



If you want to hide the arrow, make a little label of the same color as
your
form's back color and position it carefully over the arrow.

Or, in addition to having the locked property = True, set the Enabled
property of the control to False.

--
Cheryl Fischer
Law/Sys Associates
Houston, TX


A Datasheet view and a Form View are different.

See Microsoft Knowledgebase article:
'ACC: How to Hide the Combo Box Drop-Down Arrow on a Form'
http://support.microsoft.com/default.aspx?scid=kb;en-us;109724


Michael said:
Hello,

Is there such a control: a combo box with no arrow button?
I would like to use that.

Thanks,

Michael
[/QUOTE]
[/QUOTE]
 
In my application, all combo boxes are set to limit to
list.

Ok..the above is ok....
I dont want the users to be confused by thinking that they
have to choose from the list. They are free to enter any
text in that place, an new text will be added to the
history table.

Sure, just use the not in list event..and don't prompt the user when they
enter a value that is NOT in the list. With no prompts, they simply can
enter a non existing value and tab out of the field. Your not in list code
will thus have added the text.

I do agree that the drop down *does* hint or tell the user that the list is
limited...but it does NOT have to be....
 
Back
Top