>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao