1
Answer

using graphics in windows forms

Ask a question
greg.dearment

greg.dearment

20y
1.8k
1
I am new to GDI+ and the graphics class. I read the tutorial on the C# corner site. In it, you declear the graphics class instance as: Graphics g = e.Graphics; (e being the EventArgs variable passed into the paint function) if i want to draw something when the form is resized, i like the resize event to "resize_draw" but the eventsarg no longer contains Graphics. How would i use the graphics class in this function? or is it not possible? Hope that made sence.

Answers (1)