I want to check whether my window is on top of all the windows in Windows.
Anyone knows how?
Printable View
I want to check whether my window is on top of all the windows in Windows.
Anyone knows how?
You want to get your window always on top?Quote:
Originally posted by petrus
I want to check whether my window is on top of all the windows in Windows.
Anyone knows how?
Herez coding:
VB Code:
Private Sub Timer1_Timer() Form1.ZOrder 0 End Sub
Simple and fast
Nope, I want to CHECK if my window is on top..
VB Code:
Private Declare Function GetForegroundWindow Lib "user32" () As Long Private Sub Command1_Click() MsgBox GetForegroundWindow = Me.hWnd End Sub
Hehe...!Quote:
Originally posted by crptcblade
VB Code:
Private Declare Function GetForegroundWindow Lib "user32" () As Long Private Sub Command1_Click() MsgBox GetForegroundWindow = Me.hWnd End Sub