-
Hi,
I'm still trying to keep positive track on the focus of my form while I'm using the arrowkeys.
My present ideas goes like: Save Control with focus, then check for keypressed of arrowkeys, then reset the focus to the old position.
To me the ides is worth a try, but I'm stuck with a problem.
I can determine the control wich has the focus (Activefocus), but how to reset the focus back to that control?
Thanks
-
-
Nice idea, but whow
I tried it with
Code:
temp=form.activecontrol
...
...
..
temp.setfocus
that doesn't work. told you, I'm stuck
-
What do you mean doesn't work? If you set the temp correctly, temp.setfocus will set focus back to that control.
-
I mean:
Runtime Error 424 Object needed
btw I decleared Temp as variant
-
Oh, okay, try this way
dim Temp as Control
set Temp = me.activecontrol