# Yes you can!

Posted by kingkong on July 12, 1998 at 15:44:03:

In Reply to: VB 5.0 能作不规则外型的Form吗? posted by Sonora on July 12, 1998 at 03:18:28:

Try this following code: (from http://www.nease.net/~jackyyin )
=======================

Private Declare Function CreateEllipticRgn 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 Form_Load()
Show 'The form!
SetWindowRgn hWnd, CreateEllipticRgn(0, 0, 300, 200), True
End Sub

Follow Ups: