VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Change Form Shape

by David Serrano (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (105 Votes)

Can Change The Shape of any form

Inputs
Look Below
Side Effects
The border can be preatty messed up if you don't know what your doing
API Declarations
Public Declare Function CreateEllipticRgn Lib "gdi32" _
(ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long) As Long
Public Declare Function SetWindowRgn Lib "user32" _
(ByVal hWnd As Long, ByVal hRgn As Long, _
ByVal bRedraw As Boolean) As Long

Rate Change Form Shape

Private Sub Form_Load()
Show 'The form!
SetWindowRgn hWnd, CreateEllipticRgn(0, 0, 300, 200), True
End Sub
'E-mail Me at [email protected] for more info

Download this snippet    Add to My Saved Code

Change Form Shape Comments

No comments have been posted about Change Form Shape. Why not be the first to post a comment about Change Form Shape.

Post your comment

Subject:
Message:
0/1000 characters