Results 1 to 5 of 5

Thread: Window On Top

  1. #1

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553

    Window On Top

    I want to check whether my window is on top of all the windows in Windows.
    Anyone knows how?
    ICQ: 128716725

  2. #2
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    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:
    1. Private Sub Timer1_Timer()
    2. Form1.ZOrder 0
    3. End Sub

    Simple and fast

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  3. #3

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Nope, I want to CHECK if my window is on top..
    ICQ: 128716725

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Private Declare Function GetForegroundWindow Lib "user32" () As Long
    2.  
    3. Private Sub Command1_Click()
    4.     MsgBox GetForegroundWindow = Me.hWnd
    5. End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Originally posted by crptcblade
    VB Code:
    1. Private Declare Function GetForegroundWindow Lib "user32" () As Long
    2.  
    3. Private Sub Command1_Click()
    4.     MsgBox GetForegroundWindow = Me.hWnd
    5. End Sub
    Hehe...!
    ICQ: 128716725

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width