Оператор '<>' Не определен для типов 'system.windows.forms.control' и 'system.windows.forms.control
Private Sub ComboBox2_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox8.KeyDown, TextBox6.KeyDown, TextBox5.KeyDown, TextBox3.KeyDown, TextBox2.KeyDown, DateTimePicker2.KeyDown, DateTimePicker1.KeyDown, ComboBox2.KeyDown If (e.KeyCode = Keys.Enter) Then End If If (Me.GetNextControl(ActiveControl, True) <> Nothing) Then e.Handled = True Me.GetNextControl(ActiveControl, True).Focus() End If
Что я уже пробовал:
Operator '<>' is not defined for types 'System.Windows.Forms.Control' and 'System.Windows.Forms.Control