Is it possible to Select Case by the control
HTML Code:Sub ComboBox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged, ComboBox2.SelectedIndexChanged 'This works If sender Is ComboBox1 Then End If 'This doesn't Select Case sender Case ComboBox1 End Select 'And neither does this Dim myComboBox = DirectCast(sender, System.Windows.Forms.ComboBox) Select Case myComboBox Case ComboBox1 End Select End Sub




Reply With Quote