Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top level form does not get the focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00627628
Message ID:
00627811
Views:
15
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
Map
View

Click here to load this message in the networking platform