9

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.

DavidRR
  • 18,291
  • 25
  • 109
  • 191
artur_simon
  • 115
  • 2
  • 7

1 Answers1

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