Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get Top Level Form to be on Top ?
Message
From
02/04/2004 13:55:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How can I get Top Level Form to be on Top ?
Miscellaneous
Thread ID:
00891851
Message ID:
00891851
Views:
52
I'm using VFP 7.0

I have an exe that opens a Top Level Form (showwindow=2), but I can't seem to get it to appear on top of all the other windows.

I have a different app that works just fine, but I can't get this one to work properly, and I can't find any differenct between the 2 apps.
I have this in both forms and call it, but it doesn't work in the 2nd app.
myForm.SetFocus()
  DECLARE INTEGER SetForegroundWindow ;
    IN User32.DLL INTEGER
  SetForegroundWindow( THIS.HWND )
I've even set AlwaysOnTop=.T. and it still won't go to the top.
Bill Morris
Next
Reply
Map
View

Click here to load this message in the networking platform