Declare Function SetWindowRgn Lib "user32" (ByVal hwnd As Long, _
ByVal hRgn As Long, _
ByVal bRedraw As Boolean) As Long
Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, _
ByVal X2 As Long, _
ByVal Y2 As Long) As Long
Declare Function FindWindowA Lib "user32" (ByVal clpClassName As String, _
ByVal lpWindowName As String) As Long
Private Sub UserForm_Initialize()
Dim OvalSet As Long, rc As Long, hwnd As Long
hwnd = FindWindowA("ThunderDFrame", Me.Caption)
OvalSet = CreateEllipticRgn(10, 10, 250, 150)
rc = SetWindowRgn(hwnd, OvalSet, True)
End Sub