This should be simple but I'm missing something.
I need a simple example whereby I click a button and draw a rectangle on the form.
The problem I have is that I only seem to understand how to do Graphics work as part of the form's Paint event as this makes use of the System.Windows.Forms.PaintEventArgs.
How can I achieve the above outside the scope of the form's Paint event code.
Any help / pointers would be appreciated.
Thanks in advance.
Steve
I need a simple example whereby I click a button and draw a rectangle on the form.
The problem I have is that I only seem to understand how to do Graphics work as part of the form's Paint event as this makes use of the System.Windows.Forms.PaintEventArgs.
How can I achieve the above outside the scope of the form's Paint event code.
Any help / pointers would be appreciated.
Thanks in advance.
Steve