How to protect to write inside of drop down menu

R

Rob Teixeira [MVP]

I assume you are using a ComboBox control.
If I read your question correctly, you want the user to be able to click the
list to select an item, but you don't want them to type their own text into
the control.
If that is true, then all you need to do is change the DropDownStyle
property to "DropDownList".

-Rob Teixeira [MVP]
 
H

Herfried K. Wagner [MVP]

* "QT said:
I used a drop down menu with collectin of my required items. There is no
problem to sellect a items from drop down menu. But when I try to write
someting insede drop down without click right arrow, I can write. How can I
protect from writing?

Set the control's 'DropDownStyle' property to 'DropDownList'.
 
Q

QT

Dear Sirs,

I used a drop down menu with collectin of my required items. There is no
problem to sellect a items from drop down menu. But when I try to write
someting insede drop down without click right arrow, I can write. How can I
protect from writing?

Best Regards
 
Q

QT

thank you very much


Rob Teixeira said:
I assume you are using a ComboBox control.
If I read your question correctly, you want the user to be able to click the
list to select an item, but you don't want them to type their own text into
the control.
If that is true, then all you need to do is change the DropDownStyle
property to "DropDownList".

-Rob Teixeira [MVP]

can
 
Q

QT

Dear Herfried,

It was working good after setting DropDownList.

But when I try to set something to text varible with;
Me.cmbAuditor_1.Text = Auditor1

I could not see the text in the field. What should I do?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top