Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form not showing on top
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00444910
Message ID:
00444959
Views:
7
>I have a generic login form that I've placed in a COM exe (also an about box form). When I call the method that displays the form, it won't display as the active form. The form is modal, as top level and instantiated as 'DO FORM'. Anybody have any ideas how I can get around this?
>
>TIA,

You could try using a couple of WinAPI functions to bring the form to the top.

declare integer FindWindow in "user32" string@, string@
lctitle = "My Login Form Title"
lnh = FindWindow(0,@lctitle)
declare integer SetForegroundWindow in "user32" integer
SetForegroundWindow(lnh)

You should be able to add this to the Show or Activate.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform