I want to have the button pressed event draw on the canvas using “g.DrawRectangle(50, 50, 100, 100)”. The “g” item does not exist for the button.
Please show a simple example to do this. I have looked through the examples.
I do not want it in the Canvas paint event because the code for the button will be changed. This is just to get started.
13 posts - 7 participants