Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COM object and Modal form
Message
 
To
30/11/2010 08:22:58
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01490949
Message ID:
01491188
Views:
56
AlwaysOnTop will do that. You probably need to hook that up to a timer to pop it on top, then remove it after a second or so. I've found setting AlwaysOnTop requires a wait state before you can set it back.

ie. you can't do:
THISFORM.alwaysOnTop = .T.

THISFORM.alwaysOnTop = .F.
and expect the form to come to the top. DoDefault works sometimes, but it really needs a full Windows idle loop wait state for the window to get to the top.

+++ Rick ---


>Thanks. I agree, I was thinking of "simulating" modal but really just needed it to "come to the front" of a .net app.... the form is form display of information and just want it to pop on top more or less and not display behind all forms in a .net app. (The reverse of what I was doing last year)
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform