Results 1 to 3 of 3

Thread: Window property!

  1. #1
    Mine_23
    Guest
    Hello;
    How can I make a window look modally to the whole system ?

  2. #2
    Guest
    You could use the SetWindowPos API function.






    Code:
    Private Declare Function SetWindowPos Lib "user32" _
    Alias "SetWindowPos" (ByVal hwnd As Long, ByVal _
    hWndInsertAfter As Long, ByVal x As Long, ByVal y As _
    Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags _
    As Long) As Long
    
    
    Private Sub Form_Load()
        SetWindowPos hwnd, -1, 0, 0, 0, 0, 3
    End Sub

  3. #3
    Guest
    And then you can use the LockWindowUpdate API function to lock every other window so only yours can be accessed.


    Code:
    Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

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