Forums - C# Corner

Forum guidelines
Shovan Saha

Shovan Saha

  • 1.3k
  • 196
  • 8.3k

Combobox enable problem

Aug 14 2017 2:36 AM
I have two combobox. Both of two style is DropDownList. On form load 2nd will disable. When I shall select "‡mbv evwnbx (bb KwgkÛ)" from 1st combobox then 2nd will enable. Here is my code. Please help me. 
 
private void ArmyPension_Load(object sender, EventArgs e)
{
lblAPCoreRegimenterNam.Enabled = false;
comboBoxAPCoreRegimenterNam.Enabled = false;
if (comboBoxAPBahinirNam.Text.ToString() == "‡mbv evwnbx (bb KwgkÛ)")
{
comboBoxAPCoreRegimenterNam.Enabled = true;
}
}
 

Answers (2)