matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: setForegroundWindow - BringWindowToTop [???]
code: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Form_Load()
SetForegroundWindow FindWindow("IMWindowClass", vbNullString)
End Sub
This post was edited on 06-15-2005 at 02:19 AM by matty.
|
|