Hi!
Just call form objects Show() method again without parameters. This shoudl activate a form and bring it to foreground, doing the same thing as these 2 API functions. However, this also can cause strange behaviour of other forms because they're modal, so after this form is used, use HIDE() for it. Note that that form should not be modal.
>Hi Larry
>
>The following should do the trick. But only from the application itself.
>
>* This will insure the form is visible on the desktop.
>THISFORM.WINDOWSTATE = 2
>* This will bring it to the forground of the desktop.
>DECLARE INTEGER FindWindow IN Win32API STRING, STRING
>DECLARE INTEGER SetForegroundWindow IN "User32.dll" INTEGER
>hWnd = FindWindow(0,THIS.CAPTION)
>=SetForegroundWindow(hWnd)
>
>HTH
>Mike
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.