VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make Your Form into a Circle! No Boring Old Square Form!

by g4m3zuk (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Tue 5th March 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Make Your Form into a Circle! No Boring Old Square Form!

API Declarations


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 SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long



Rate Make Your Form into a Circle! No Boring Old Square Form!




Dim lReturn As Long

     Me.Show

     lReturn = SetWindowRgn(hWnd, CreateEllipticRgn(50, 50, 200, 200), True)




Download this snippet    Add to My Saved Code

Make Your Form into a Circle! No Boring Old Square Form! Comments

No comments have been posted about Make Your Form into a Circle! No Boring Old Square Form!. Why not be the first to post a comment about Make Your Form into a Circle! No Boring Old Square Form!.

Post your comment

Subject:
Message:
0/1000 characters