ArneGarvander
Tue Dec 18 09:01:01 CST 2007
Public Declare Function SystemParametersInfo Lib "user32" Alias
"SystemParametersInfoA" (ByVal uAction As Integer, ByVal uParam As Integer,
ByRef lpvParam As Object, ByVal fuWinIni As Integer) As Integer
Public Declare Function SetForegroundWindow Lib "user32" Alias
"SetForegroundWindow" (ByVal hwnd As Integer) As Integer
Public Declare Function ShowWindowAsync Lib "user32" Alias
"ShowWindowAsync" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As
Integer
Public Const WS_SHOWNORMAL As Integer = 1
SystemParametersInfo(8193, 0, 0, 3)
ShowWindowAsync(Me.Handle, WS_SHOWNORMAL)
SetForegroundWindow(Me.Handle)
SystemParametersInfo(8193, 200000, 200000, 3)
--
Arne Garvander
Certified Geek
Professional Data Dude
"Manish Bafna" wrote:
> Hi,
> I have tested solution shown in below link is working perfectly well.Instead
> of window.Handle you need to write yourminimizedform.Handle.
>
http://www.redbugtech.com/forums/viewtopic.php?t=74
> --
> Hope this helps.
> Thanks and Regards.
> Manish Bafna.
> MCP and MCTS.
>
>
>
> "Arne Garvander" wrote:
>
> > I have a window that is waiting for an event to occur. While waiting the
> > operator may minimize the window.
> > When the event occur I would like to restore the window and bring it into
> > focus. How can I do that programmtically?
> > --
> > Arne Garvander
> > Certified Geek
> > Professional Data Dude