Link to home
Start Free TrialLog in
Avatar of Exsus
ExsusFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Restore an Application

Hi,

I'm trying to restore an application from a minimized state, but when I do this the app shutsdown?!?!?!

The code I use is:

Private Declare Function ShowWindow Lib "user32" (ByVal lhWnd As Long, _
    ByVal nCmdShow As Long) As Long

ShowWindow lhWnd, SW_RESTORE

What am I doing wrong?

I also use SetForegroundWindow and this works fine with this window.

Thanks.

ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial