Home > How-To Library > Forms
How to create circular forms
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * **************************************************************** 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 'How can I call this 'Call CutCircle(me,0,0,60,60) to make circular form Function CutCirCle(Form As Form, Left, Top, Fat, Tall) SetWindowRgn Form.hWnd, CreateEllipticRgn(Left, Top, Fat, Tall), True End Function
If you would like to submit your code here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.