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

disable a value from a combo box

am using c# for windows application and i need some help.
i have a combo box that is connected with the database and retreive the data from a table in the database.this tha i need is if is possible when i selected one of the values from the combo box that certain value to me disable and the user will not be able to used it again.i don't want to remove it but just to disable and not be for use.
is this able or not???
Mar 11 '08 #1
2 1458
Hi,
That is 100% possible. If you put your code and explaination that on what value do you want to disable it then i can suggest you something in coding.

Thanks
Mahesh



am using c# for windows application and i need some help.
i have a combo box that is connected with the database and retreive the data from a table in the database.this tha i need is if is possible when i selected one of the values from the combo box that certain value to me disable and the user will not be able to used it again.i don't want to remove it but just to disable and not be for use.
is this able or not???
Mar 12 '08 #2
private void capturesymptom_SelectedIndexChanged(object sender, EventArgs e)
{

ComboBox tempname1 = (ComboBox)sender;
string ComboName1 = tempname1.Text;
}

this is the code tha i capture the selected value fo the user that select from the combo box.
can i use any command like something.disable=true in order the selected value not to be able to be used again?
Mar 12 '08 #3

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

Similar topics

3
by: MervinJadhav | last post by:
How to disable combo items? Mervin Jadhav Software Developer Solutiioneyes Pvt Ltd (http://www.solutiioneyes.com) 203, Sai Chambers, 16 Mumbai-Pune Rd, Pune - 411 003 INDIA
4
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
1
by: kimj.dk | last post by:
Hi, I have a form with a subform where the subform uses the value from a combo box on the main form as a query criteria. I don't want the subform to update or get data before the user has selected...
4
by: mkaszub | last post by:
Hi, I have a problem with combobox. On my form is many comboboxes and when I select same option and use my mouse roll, combobox change to next value. How to disable mouse roller? I tried to...
5
by: Kevin Wilcox | last post by:
In Access 2003 I have a continuous form with a combo. I'm trying to find a way to change the displayed values of the combo depending on whatever value was selected in the combo in the previous...
11
Hiren Joshi
by: Hiren Joshi | last post by:
Hello All Experts, I am a Moderate VB Programmer. I am developing one Application at the moment with VB 6.0 and MS Access. Operating System is Win XP. Its a Multi User application. What I want...
2
by: y2ktan | last post by:
Hi Guys and Girls, I am building a windows application using VS2005, C#.net. Now, I have a combo box that contains a collection of elements. Thus, I want to grey out some of the elements in the...
2
by: CenturionX | last post by:
Hello, Somebody knows how to disable the combobox button in Access 2002. I want to prevent the list be displayed. Thanks.
5
by: aquarius4u | last post by:
I m new to MS ACCESS and just started the VBA coding part, i have created a basic form with couple of combo boxes, just wants to know how to disable the combo box for the previous saved records.. coz...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...

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.