Option Explicit
Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" (ByVal hwnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim lRgn As Long
Me.ScaleMode = 3
lRgn = CreateRectRgn(0, 30, Me.ScaleWidth, Me.ScaleHeight)
Call SetWindowRgn(Me.hwnd, lRgn, True)
End Sub