I am a C# newbie and have encountered a problem in my homework.
I have a panel in ‘Form1.cs’ called panel3.
Now, I have a class called ‘Staff’ and I want to add a method in Staff to draw a sequence of lines underneath each other. These lines must be added and shown in panel3 (found in Form1.cs).
How can I do this please? Thank you.
I have something like this in the “Staff.cs”:
My problem is how I am going to invoke it in Form1_Load event? What parameters should I pass to it?
I want the ‘Draw’ method to draw the lines in panel3 found in ‘Form1.cs’.
Thanks.
Edit
Thanks a lot for your help 🙂 I have solved it now thanks to you 🙂
1 Answer