Hi all,
Like it says in the topic, i want to cancel a keydown event when i am editing a textbox, but not when a textbox has the focus.
For example:
Private Sub TextBox2_KeyDown(KeyCode As Integer, Shift As Integer)
if keycode = 39 then
Textbox1.setfocus
end if
End Sub
In this example the focus always goes to textbox1 when i am pressing the left arrow. So if i want to correct a type error, i cannot use the arrow!
Is there a sollution for this? Is it possible to see when a textbox just has the focus, or when you really editing the value inside the textbox?
Many thanks,
Jasper
Like it says in the topic, i want to cancel a keydown event when i am editing a textbox, but not when a textbox has the focus.
For example:
Private Sub TextBox2_KeyDown(KeyCode As Integer, Shift As Integer)
if keycode = 39 then
Textbox1.setfocus
end if
End Sub
In this example the focus always goes to textbox1 when i am pressing the left arrow. So if i want to correct a type error, i cannot use the arrow!
Is there a sollution for this? Is it possible to see when a textbox just has the focus, or when you really editing the value inside the textbox?
Many thanks,
Jasper