disable combobox in c#
-
You can write it in Select_Index_Change of First DropDown EX:
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList2.Enabled = false;
}As Pete said, it does not help the OP with his problem. He wants to disable the combo box when it is selected, not when an item is selected...
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
-
You can write it in Select_Index_Change of First DropDown EX:
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList2.Enabled = false;
} -
how to disable combobox if another combobox is selected in c# windows form application
diviya murali
you can use the Click event of the second combobox to enable/disable the first combobox
private void comboBox2_Click(object sender, EventArgs e)
{
comboBox1.Enabled = false;
} -
you can use the Click event of the second combobox to enable/disable the first combobox
private void comboBox2_Click(object sender, EventArgs e)
{
comboBox1.Enabled = false;
}Is this event fired if the user tabs into the combobox?
-
how to disable combobox if another combobox is selected in c# windows form application
diviya murali
-
The simplistic answer would be to set the Enabled state of the ComboBox from the other ComboBox by handling the GotFocus and LostFocus events on that ComboBox.
-
The simplistic answer would be to set the Enabled state of the ComboBox from the other ComboBox by handling the GotFocus and LostFocus events on that ComboBox.
It's a good answer. Take you long to come up with it?
-
It's a good answer. Take you long to come up with it?
By using Jquery u can do this in web for windows u need handle in code
Thanks & Regards Anant Shetty
-
By using Jquery u can do this in web for windows u need handle in code
Thanks & Regards Anant Shetty
A couple of points. 1. jQuery isn't magic. You still have to write code. 2. I know how to solve this problem. 3. You replied to the wrong person. 4. How does any of that answer help the poster answer his question?
-
how to disable combobox if another combobox is selected in c# windows form application
diviya murali
Do you want to disable all comboboxes except current?
Tim Toady Bicarbonate
-
By using Jquery u can do this in web for windows u need handle in code
Thanks & Regards Anant Shetty
Please avoid textspeak on this forum. Do a favor to your keyboard (and to our eyes), use it entirely.
There are two kinds of people in the world: those who separate humankind in two distinct categories, and those who don't. "I have two hobbies: breasts." DSK