Results 1 to 2 of 2

Thread: ShowInTaskBar property

  1. #1
    Guest
    How can I turn off the ShowInTaskBar property for MDI form?
    I notice the MDI form doesn't have this property, how would I accomplish this through vb code? Thanks!

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    In the MDI Form:
    Code:
    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
    Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
    Private Const GWL_EXSTYLE = (-20)
    Private Const WS_THICKFRAME = &H40000
    
    Private Sub MDIForm_Load()
        Call SetWindowLong(hwnd, GWL_EXSTYLE, _
        GetWindowLong(hwnd, GWL_EXSTYLE) Xor WS_THICKFRAME)
    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