Removing form's Title Bar


'Code By Kiran Reddy
'Removing the form's Title Bar
'Declare following API in your module

Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Const GWL_STYLE = (-16)
Public Const WS_DLGFRAME = &H400000
'Paste following code in any form's load event
SetWindowLong Me.hwnd, GWL_STYLE, GetWindowLong(Me.hwnd, GWL_STYLE) + WS_DLGFRAME
You can view this article online at:
http://www.kiranreddys.com/knowledgebase/index.php/article/removing-forms-title-bar