Connecting Tech Pros Worldwide Forums | Help | Site Map

How to lock the item in combo box.

Newbie
 
Join Date: Sep 2007
Posts: 27
#1: Jan 15 '08
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?

Dököll's Avatar
Moderator
 
Join Date: Nov 2006
Location: Upstate NY - US
Posts: 2,268
#2: Jan 15 '08

re: How to lock the item in combo box.


Quote:

Originally Posted by bluethunder

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!
Newbie
 
Join Date: Sep 2007
Posts: 27
#3: Jan 15 '08

re: How to lock the item in combo box.


Quote:

Originally Posted by Dököll

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.
lotus18's Avatar
Site Addict
 
Join Date: Nov 2007
Location: Zamboanga City, Philippines
Posts: 858
#4: Jan 15 '08

re: How to lock the item in combo box.


Quote:

Originally Posted by bluethunder

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
Reply