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.