|
-
Feb 22nd, 2018, 11:48 PM
#2
Re: How to create arc with chords in a picture box
Drawing in Windows Forms is done using GDI+. You would add a PictureBox to your form and handle its Paint event, then do your drawing in the event handler. You can find plenty of information and examples of using GDI+ around this site and the web. If you follow the CodeBank link in my signature below, you'll find three threads containing examples of GDI+ drawing. In your case, you'd call the DrawArc, DrawLine and DrawString methods of the Graphics object provided by the event handler. The maths to calculate what and where to draw will be basically the same as if you were doing this by hand with pen and paper.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|