by Suresh M (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 13th June 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Round the Form
API Declarations
Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Dim lResult As Long
lResult = CreateRoundRectRgn(10, 10, 200, 200, 50, 50)
SetWindowRgn Me.hWnd, l, True
End Sub