CodeItBetter Programming Another VB Programming Blog

How to bring our Window to the foreground

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
'System & API - How to bring our Window to the foreground
Declare Function SetForegroundWindow Lib "user32" (ByVal hWnd As Long) As Long
 
Sub Main()
    Call SetForeground(Form1.hWnd)
End Sub
 
'Command to bring our Window to the foreground
Public Sub SetForeground(hWnd As Long)
    SetForegroundWindow hWnd
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.