|
-
Feb 20th, 2003, 01:12 PM
#1
Thread Starter
Fanatic Member
Window On Top
I want to check whether my window is on top of all the windows in Windows.
Anyone knows how?
-
Feb 20th, 2003, 01:29 PM
#2
Fanatic Member
Re: Window On Top
Originally posted by petrus
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?
Herez coding:
VB Code:
Private Sub Timer1_Timer()
Form1.ZOrder 0
End Sub
Simple and fast
-
Feb 20th, 2003, 01:31 PM
#3
Thread Starter
Fanatic Member
Nope, I want to CHECK if my window is on top..
-
Feb 20th, 2003, 01:50 PM
#4
VB Code:
Private Declare Function GetForegroundWindow Lib "user32" () As Long
Private Sub Command1_Click()
MsgBox GetForegroundWindow = Me.hWnd
End Sub
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Feb 20th, 2003, 01:51 PM
#5
Thread Starter
Fanatic Member
Originally posted by crptcblade
VB Code:
Private Declare Function GetForegroundWindow Lib "user32" () As Long
Private Sub Command1_Click()
MsgBox GetForegroundWindow = Me.hWnd
End Sub
Hehe...!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|