I have this codes in my app, with the intention of letting my app be at the foreground and active while cursor is blinking waiting for user input... the cursor is blinking but i still have to click the textbox so that i could input.... I also have alwaysontop set to .t. Please help me solve... Thanks and God bless
code...
go_Form.Visible = .T.
go_Form.Show(2)
code...
code...
Procedure Init()
thisform.pgfnames.activepage = 5
_screen.Visible = .f.
_screen.borderstyle = 2
DECLARE INTEGER SetForegroundWindow IN WIN32API INTEGER
SetForegroundWindow(thisform.HWnd)
CLEAR DLLS "SetForegroundWindow"
thisform.pgfnames.activepage = 5
WITH thisform.pgfnames.page5
.text1.setfocus()
ENDWITH
code ....
code...
endproc
code...
go_Form.Visible = .T.
go_Form.Show(2)
code...
code...
Procedure Init()
thisform.pgfnames.activepage = 5
_screen.Visible = .f.
_screen.borderstyle = 2
DECLARE INTEGER SetForegroundWindow IN WIN32API INTEGER
SetForegroundWindow(thisform.HWnd)
CLEAR DLLS "SetForegroundWindow"
thisform.pgfnames.activepage = 5
WITH thisform.pgfnames.page5
.text1.setfocus()
ENDWITH
code ....
code...
endproc