473,473 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to lock the item in combo box.

50 New Member
Hello to all of you guys. I have a problem in the system that i made. How will i going to prevent the deleting of item in the combo box w/out disabling the backspace and delete key in keyboard using ascii code. Is there any way to lock the items in the combo box?
Jan 15 '08 #1
3 3393
Dököll
2,364 Recognized Expert Top Contributor
Hello to all of you guys. I have a problem in the system that i made. How will i going to prevent the deleting of item in the combo box w/out disabling the backspace and delete key in keyboard using ascii code. Is there any way to lock the items in the combo box?
Hello, bluethunder!
Just a shot in the dark but I do not see why not, we can definitely do it to textboxes .Locked, I believe. Stay tuned bluethunder, someone here may have a better idea...

In a bit!
Jan 15 '08 #2
bluethunder
50 New Member
Hello, bluethunder!
Just a shot in the dark but I do not see why not, we can definitely do it to textboxes .Locked, I believe. Stay tuned bluethunder, someone here may have a better idea...

In a bit!
if i used the .locked of the properties of the combo box; the combo box will not drop down its item. That's why i didn't use the properties to lock the item of the combo box because it will not be enable.
Jan 15 '08 #3
lotus18
866 Contributor
if i used the .locked of the properties of the combo box; the combo box will not drop down its item. That's why i didn't use the properties to lock the item of the combo box because it will not be enable.
Hi

If I got your problem, set the Style (Property) to DropDown List - 2. This is a simple way for preventing the items to be edited. : )


Rey Sean
Jan 15 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Rich Sienkiewicz | last post by:
Some classes, like Queue and SortedList, have a Synchronized method which gives a thread safe wrapper object for these classes. But the lock() statement does the same thing. Is there any rules as to...
3
by: mal | last post by:
Sorry for repost - system added to another subject for some reason Have tried numerous ideas from the group to solve this one. It is such a simple example that it should be straightforward ! I...
8
by: Roy Padgett | last post by:
I have a combo box where users select the customer name and can either go to the customer's info or open a list of the customer's orders. The RowSource for the combo box was a simple pass-through...
9
by: Kay | last post by:
Hi all, Could you tell me the best way to add a blank item(as first item) in a data binded combo box? Because I think I didn't do it right and it generate an error if the second item(after the...
6
by: ian_jacobsen | last post by:
I have a control that is derived from the standard ComboBox. I want to lock or suppress the DropDown when the arrow button is clicked without disabling the control. This is related to another...
6
by: Smokey Grindle | last post by:
Say I have a combo box with the following simple object Public class MyObject public ID as integer public Name as string public overrides sub ToString() as string return name end sub end...
6
by: jmartmem | last post by:
Greetings, I have an Access 2002 continuous form called "Project Update Form" in which users can update project values presented in a series of combo boxes and text boxes. Three of the combo...
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
6
by: Curious | last post by:
I have an arraylist used in three separate methods. In method #1 (event method), some items are removed from the arraylist if certain conditions are met; In method #2 (event method),...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.