473,385 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to protect to write inside of drop down menu

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
Nov 20 '05 #1
4 1121
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]

"QT" <we*****@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
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

Nov 20 '05 #2
* "QT" <we*****@yahoo.com> scripsit:
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'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
QT
thank you very much
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:ee**************@TK2MSFTNGP10.phx.gbl...
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]

"QT" <we*****@yahoo.com> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
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


Nov 20 '05 #4
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?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:es**************@tk2msftngp13.phx.gbl...
* "QT" <we*****@yahoo.com> scripsit:
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'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
6
by: Filiz Duman | last post by:
I was just wondering, is it possible to write into the drop down box in order to jump to a specific item. The reason why I am asking is my drop down box has many items and additionally to the...
10
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the...
0
by: vikram.cvk | last post by:
Hello Experts, Im trying to design a CSS vertical drop down menu which should have the following functionality. Home About Us | -->Overview
2
by: hemanth.singamsetty | last post by:
Hello there, I've a drop down menu (created using CSS & Javascript -- see code below). My problem is, whenever I click a link on the menu the new page replaces the current page (and the menu...
4
by: simon.cigoj | last post by:
I have an javascript made menu and some forms with the dropdown element. When the menu opens and scrolls down the drop down is displeyed over the menu and obscures the menu choices. I have this...
1
by: phpnewb | last post by:
Hi, I know i'm doing it wrong, but I'm using a while loop right now to create several instances of a drop down menu. It gives me undesirable results. Can you tell me the right way to do it. Below are...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
1
by: Kaland | last post by:
Do the search engines follow links that are within forms (like the drop-down menu) so that those pages are indexed? Here is the code for a sample drop-down menu that I created. <form><select...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.