Combo Box Enabling

  
TO enable combox box if radio button is checked :-

this.ComboBox_Name.Enabled = this.RadioButton_name.Checked;

This statement will enable the combo box true if radio button is checked.
RadioButton_name.Checked will return true if radio button is selected and if it returns true then combo box will be enabled and vice versa

No comments:

Post a Comment