Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Remove the border from a window


Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( ByVal hwnd As Long , _
    ByVal nIndex As Long , ByVal dwNewLong As Long ) As Long
Private Const GWL_STYLE = ( - 16)

Public Sub RemoveFrame(ihWnd As Long )
   SetWindowLong ihWnd, GWL_STYLE, 0&
End Sub