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
Wanna draw an ellipse in a form? ...
Author:
Luis Ibarra
E-mail:
Click to e-mail author
Submitted:
8/5/2001
Version:
VB5
Compatibility:
VB5, VB6
Category:
Forms
Views:
9304
Wanna draw an ellipse in a form?
Declarations:
Code:
Private Sub Form_Paint() Dim CX, CY, Radius, Limit ScaleMode = 3 ' Set scale to pixels. CX = ScaleWidth / 2 ' Set X position. CY = ScaleHeight / 2 ' Set Y position. If CX > CY Then Limit = CY Circle (CX, CY), Limit * (CX / CY), RGB(0, 0, 0), 0, 0, (CY / CX) Else Limit = CX Circle (CX, CY), Limit * (CY / CX), RGB(0, 0, 0), 0, 0, (CY / CX) End If End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement