Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form not showing on top
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00444910
Message ID:
00444959
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform