Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Focus to Top Level Form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00546077
Message ID:
00546088
Views:
23
Hi!

You can change the form caption temporarily for the moment before the FindWindow() call to something unique based on the sys(3) function value, then restore it back:

lcOldCaption = oMyForm.Caption
lcTempCaption = lcOldCaption + sys(3)
oMyForm.Caption = lcTempCaption
&& call FindWindow() here ...
oMyForm.Caption = lcOldCaption

BTW, in VFP7 form class have the HWND property that you can use instead of finding it.

HTH.

>Thanks Guys! Vlad - the only trouble is I change the top level form caption to reflect which screen the user is on - can I specify something like lcMyApp = "My Application - *" I know that won't work but you get my drift?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform