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:
00546082
Views:
18
Hi!

Try Form.Show() method call for that form. If ot does not help, you then require to us Windows API functions: FindWindow to get HWND of the window and SetForegroundWindow to make it active.

HTH.

>Hi folks - I am trying to wire up my menu!
>I have a Top Level Form which may have up to three other child forms open. I also have an ole Tree which enables navigation between the screens - before changing screens I check whether data has changed etc. My problem is setting focus to the top level form so I can reference the ole tree from my menu. I create the child forms from classes and I do the data check and then close the form objects. Once all the child forms are closed my top level form doesn't seem to have focus. Is there a way to set focus to it?
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