I have 2 forms.
- form = form1
- form = form2
When pressing a button in form1, form2 shows up.
What I want is pressing a button in form2 draws a rectangle on to form1 picturebox.
I Wrote an event handler function for button clicked in Form2 to be handled in Form1, but in handler I can’t draw anything in form1’s picturebox.
How can I achieve it?
In your event code on Form1 where you are receiving the button click event from Form2, try this: