General information
Category:
Forms & Form designer
Paste this into the init method of your form and it will receive focus :-
declare integer FindWindow in USER32.dll integer, string
declare integer SetForegroundWindow in User32.dll Integer
WindowTitle=chr(34)+alltrim(thisform.caption)+chr(34)
winHandle = FindWindow(0,&WindowTitle)
if winHandle > 0
SetForegroundWindow(winHandle)
endif
Regards
Steve
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only