Hello, I am making an application where You will select a color from a combo box and after pressing select button it would show what "Inside Out" Movie character you are. The Characters are in 5 Different hidden panels.
My problem is that it's showing this error:
Error 2 Operator '=' is not defined for types 'System.Windows .Forms.ComboBox ' and 'Integer'
How should I make this?
Here's my Code
Attach is a Scrrencap of my Design
My problem is that it's showing this error:
Error 2 Operator '=' is not defined for types 'System.Windows .Forms.ComboBox ' and 'Integer'
How should I make this?
Here's my Code
Code:
Public Class Form1 Private Sub ColorListComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ColorListComboBox.SelectedIndexChanged End Sub Private Sub Selectbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Selectbtn.Click Select Case ColorListComboBox Case 0 Angerpnl.Visible = True Case 1 Joypnl.Visible = True Case 2 Joypnl.Visible = True Case 3 Sadnesspnl.Visible = True Case 4 Disgustpnl.Visible = True Case 5 Disgustpnl.Visible = True Case 6 Fearpnl.Visible = True Case 7 Fearpnl.Visible = True Case 8 Joypnl.Visible = True Case 9 Angerpnl.Visible = True Case 10 Angerpnl.Visible = True Case 11 Sadnesspnl.Visible = True Case 12 Disgustpnl.Visible = True Case 13 Fearpnl.Visible = True Case 14 Sadnesspnl.Visible = True Case Else Errorlbl.Visible = True End Select End Sub Private Sub Exitbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Exitbtn.Click End End Sub End Class
Comment