Is there a recommended one to use in order to add lines and circles, so I can build a graph? I will possibly work with background images under the graph itself.
Asked
Active
Viewed 4,290 times
9
-
Also, are you using WPF, or Silverlight? – John Saunders Oct 31 '12 at 21:35
-
1@JohnSaunders I assume it's just Windows Forms based on the tags. – xxbbcc Oct 31 '12 at 21:37
-
I'd say neither. If you're doing your own drawing, just inherit from `Control` itself unless you have a need specifically for one of the other two. – Knowledge Cube Jun 14 '17 at 13:54
1 Answers
9
Use a PictureBox
- it'll be easiest to maintain the code later on. A Panel
is not really useful in this case and drawing directly on the Form
- while it'd work - would make it harder to make changes later on.
Just handle the Paint
event of the PictureBox
and do all your drawing in there.

xxbbcc
- 16,930
- 5
- 50
- 83
-
also noticed that animated graphic shapes are flickering on a `panel` and on `picturebox` it does not happen. – Jonathan Applebaum Oct 20 '16 at 16:55
-
1@jonathana You can make it work the right way even with a Panel but it's extra work that you don't have to do with a PictureBox. – xxbbcc Oct 20 '16 at 17:41