VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Circle Drawing Example

G-Man  (1 Submission)   Miscellaneous   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code is simply to illustrate the mathematical operations necessary to draw a circle. Of course I realize VB has built in functions for this, but thought this might be useful for some to understand. In my example, I use a picture box with the PSet method to do the drawing.

Assumes
Simply create a form with a decent size picture box (picture1), a text box we will enter the radius in (text1), a command button to draw the circle (command1), and a command button for exit (command2). Paste the code I have supplied and run it.

Rate Circle Drawing Example (2(2 Vote))
Circle Drawing Example.bas

Circle Drawing Example Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters