View Single Post
  #1 (permalink)  
Old October 23rd, 2013, 12:55 AM
Wendel Wendel is offline
Authorized User
Points: 96, Level: 1
Points: 96, Level: 1 Points: 96, Level: 1 Points: 96, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2013
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Question Lesson25TryItClassesDraw

I am (or should I say was) unable to draw the rectangles/ellipses on Form1. After substituting my code with the code from the “downloads” I have narrowed the variation in my code down to:
additional code in Form1.Designer.cs.

this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_ Paint);
How do I get this code into my project? Hopefully, without having to do a lot of typing.

Can you elaborate on the “Form1_Paint” event handler. Do you type the code into Form1.cs or is there an easier solution (similar to double clicking on the Form for say the “Form1_Load” event handler?

Last edited by Wendel; October 23rd, 2013 at 12:58 AM.. Reason: Forgot to add QUOTE for code