Kikx

Kikx

  • NA
  • 9
  • 12.1k

Panel size problem

Aug 22 2012 2:49 PM
Hello

I am creating a paint project in C#/GDI+ as a college project. I have managed the most part of it, it is able to draw using a pen or draw different shapes on a panel using the MouseUp/Down/Move events.
The issue is that when the program starts running the form is approx. 800x400 pixels and the panel is docked in it and I can properly paint on all of the panel. When I maximize the form however, the panel is also resized but I can only draw on an area of the panel which would seem to be the same size as it was when the program originally was started.
Is there a way to ensure that I can draw on the whole panel after being maximized?


Thanks in advance!