Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
enable a groupbox when we select value from combobox
Posted
Comments
F. Xaver 1-Apr-14 6:45am    
what have you tried so far? ..

1 solution

Whenever a value is selected from a combo box the following `SelectedIndexChanged` event triggers. So, you should try something like this:

SQL
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
      ' TODO : Here you can also set index based criteria
      ' If (comboBox1.SelectedIndex = 2) Then
      ' groupBox1.Enabled = True
      ' End If

      groupBox1.Enabled = True
End Sub


Visit MSDN documentation for `ComboBox` control as well.

Hope it helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900