Results 1 to 2 of 2

Thread: Q:My vb form on top of all the applications?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    2

    Question Q:My vb form on top of all the applications?

    How to make my vb form to be the topmost application in front of all other applications that was running on my system?

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Q:My vb form on top of all the applications?

    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _
    4. ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
    5. ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
    6.  
    7. Private Sub Form_Load()
    8. Call SetWindowPos(hwnd, -1, 0, 0, 0, 0, 3)
    9. End Sub

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