|
-
April 12th, 2006, 07:34 PM
#1
Title Bar visibility
I set ControlBox = False on all my Children forms at design time. When any of Child form is loaded into MDI, its Title Bar appears for 0.3-0.5 sec making the application look not clear enough.
I found this code via Google:
Declare Function FindWindow& Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String)
Declare Function SetWindowPos Lib "user32" (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
Public Sub HideTaskBar()
Dim taskWindow As IntPtr = FindWindow("HHTaskBar", Nothing)
If Not taskWindow = IntPtr.Zero Then
'SWP_NOZORDER = &H4
SetWindowPos(taskWindow, IntPtr.Zero, 0, 0, 0, 0, &H4)
End If
End Sub
But it produces an error on the first line in HideTaskBar Sub.
I'm looking for help either with this Sub or with complete hiding the title bar by any other way.
Thank you
Vlad
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
|