Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Use this code to create fancy oval forms....
Author:
Jim Benson
E-mail:
Click to e-mail author
Submitted:
10/21/2000
Version:
VB5
Compatibility:
VB5, VB6
Category:
Forms
Views:
11001
Use this code to create fancy oval forms.
Declarations:
Declare Function CreateEllipticRgn Lib "gdi32" Alias "CreateEllipticRgn" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long Declare Function SetWindowRgn Lib "user32" Alias "SetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Code:
Private Sub Form_Load() Dim ReturnVal As Long Me.Show ReturnVal = SetWindowRgn(Me.hWnd, CreateEllipticRgn(10, 25, 100, _ 200), True) End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement