Socarsky
Well-known member
There is an small issue in the part of Keys.Tab following code. If There is no control if a from then Keys.
Tab works well but if a form has some controls on it then Keys.Tab does work when I press it.
Do you know a solution of that small issue?
 
	
		
			
		
		
	
				
			Tab works well but if a form has some controls on it then Keys.Tab does work when I press it.
Do you know a solution of that small issue?
Private Sub txtStockCode_KeyDown(sender As Object, e As KeyEventArgs) Handles txtStockCode.KeyDown
If e.KeyValue = Keys.Enter OrElse _
            e.KeyValue = Keys.F2 OrElse _
            e.KeyValue = Keys.Tab OrElse _
            e.KeyValue = Keys.Down Then
            MessageBox.Show("yay")
End If
 
	 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		