Hello new world.
I'm new to C# and very new to GDI and drawing and would really appreciate some help.
I'm trying to draw some boxes (rectangles). I wont put code up as I don't think it's nessesary... but you never know.
As a test I've made a form and every time you click a button it draws a square and increments a counter by 10. This counter is used for the location of the box so each time you click the button the square moves 10 to the right and 10 down, so you can see something is happening.
The problem is, nothing appears on the screen unless I resize the window. If I click the button 10 times, nothing appears, then I resize the window and they all appear.
Do you have any suggestions? I can post code if it's needed, but I'm guessing that it's quite a simple thing to solve.
Thanks for any and all help.
Andrew Smith.
EDIT: The strange thing is though, if I step through it in debug mode step by step it all works fine. Although the application does disappear behind VS so I guess that could be it...