Re: bring an already running app to the front



"Mike S" <mgspross@xxxxxxxxxxxx> schrieb:
Private Declare Function ShowWindow Lib "user32" _
(ByVal hWnd As System.IntPtr, ByVal nCmdShow As Long) As Long

Your declaration is wrong. Use this declaration instead:

\\\
Private Declare Function ShowWindow Lib "user32.dll" ( _
ByVal hWnd As IntPtr, _
ByVal nCmdShow As Int32 _
) As Boolean

Private Const SW_RESTORE As Int32 = 9
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.


Loading