473,320 Members | 1,921 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,320 software developers and data experts.

Locking a Combo-Box

I need to lock a combo-box on my form. I want to allow the user to use the
drop down list but I don't want them to be able to type their own text in
the combo-box. I've tried the "locked" and "enabled" properties and neither
of these seem to do the trick. "locked" doesn't do much and if I set
"enabled" to false then I can't even use the drop-down.

Thanks,
Ryan
Jun 19 '06 #1
5 2691
Hello Ryan,

Try the DropStyle property

-Boo
I need to lock a combo-box on my form. I want to allow the user to
use the drop down list but I don't want them to be able to type their
own text in the combo-box. I've tried the "locked" and "enabled"
properties and neither of these seem to do the trick. "locked"
doesn't do much and if I set "enabled" to false then I can't even use
the drop-down.

Thanks,
Ryan

Jun 19 '06 #2
"Ryan" <Ty****@newsgroups.nospam> schrieb:
I need to lock a combo-box on my form. I want to allow the user to use the
drop down list but I don't want them to be able to type their own text in
the combo-box. I've tried the "locked" and "enabled" properties and
neither of these seem to do the trick. "locked" doesn't do much and if I
set "enabled" to false then I can't even use the drop-down.


Set the 'DropDownStyle' property to 'DropDownList'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jun 19 '06 #3
Hi Ryan,

Thanks for your post!

Do you mean that you still enable the user the use DropDownList of Combobox
to change the selection while disabling the textbox typing in the Combobox?
This is one type of Combobox style which is named with "DropDownList". This
style disables the editing function in ComboBox.

Normally, the default combobox style is "DropDown" which enabling the
editing in ComboBox. You can set "DropDownStyle" property to "DropDownList"
to switch the style.

I think there maybe some typo in GhostInAK's reply. There is no "DropStyle"
property. "Herfried K. Wagner [MVP]"'s reply is correct.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 20 '06 #4
Hi Jeffrey,

You are right and this is just what I was looking for.

Ryan

""Jeffrey Tan[MSFT]"" <je***@online.microsoft.com> wrote in message
news:w7**************@TK2MSFTNGXA01.phx.gbl...
Hi Ryan,

Thanks for your post!

Do you mean that you still enable the user the use DropDownList of
Combobox
to change the selection while disabling the textbox typing in the
Combobox?
This is one type of Combobox style which is named with "DropDownList".
This
style disables the editing function in ComboBox.

Normally, the default combobox style is "DropDown" which enabling the
editing in ComboBox. You can set "DropDownStyle" property to
"DropDownList"
to switch the style.

I think there maybe some typo in GhostInAK's reply. There is no
"DropStyle"
property. "Herfried K. Wagner [MVP]"'s reply is correct.

Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jun 20 '06 #5
Hi Ryan,

If you need further help, please feel free to post. Thanks.

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 21 '06 #6

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

Similar topics

16
by: Nid | last post by:
How do I do row-level locking on SQL Server? Thanks, Nid
3
by: RWC | last post by:
Hello, I have an issue that's driving me batty! I have a report, whose record source is SQL based on a normalized set of tables. There are no nested queries and no dlookups in this record...
2
by: TechBoy | last post by:
I have 2 forms FrmMain and frmSearch. On frmMain I have to lock the textboxes and combo boxes on the form if the user logged out that record. FrmMain has a command button that launches...
10
by: McFly Racing | last post by:
Thread Locking In Static Methods I have the need for a Log Manger class that has static methods. Normally I would use the lock statement or a Monitor statement both of which take a...
15
by: z. f. | last post by:
Hi, i have an ASP.NET project that is using a (Class Library Project) VB.NET DLL. for some reason after running some pages on the web server, and trying to compile the Class Library DLL, it...
7
by: Shak | last post by:
Hi all, I'm trying to write a thread-safe async method to send a message of the form (type)(contents). My model is as follows: private void SendMessage(int type, string message) { //lets...
0
by: xpding | last post by:
Hello, I have a class MyEmbededList contains a generic dictionary, the value field is actually the MyEmbededList type as well. There is another class need to access and manipulate a list of...
0
by: Cindy Huyser | last post by:
I have an Access 2000 database behind a threaded Java application that that can have have concurrent access to the same table (but not the same record). The database is set up for shared access...
1
by: Paul H | last post by:
I have an Employees table with the following fields: EmployeeID SupervisorID Fred Bob Bob John Bob Mary Bill Bill I have created a self join in...
0
by: tbeers | last post by:
Good afternoon. I am ready to deploy a database using access 2007. Been pretty happy with the development process. However, the application will be used over a terminal server network...windows...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.