Passing a Winform to a class

  • Thread starter Thread starter Carlos
  • Start date Start date
C

Carlos

Ok I'm learning C# and GDI+, and I created class that will plot some lines
in the main form using GDI but my problem that I do not know how to pass
the mainFrm to the class where I will do the drawing
lie

public class deltaPlot
{
public void plotBox( "WHAT DO I PASS HERE FOR A FORM?)
{
//here I do the ploting oa box
}
}

Thanks in advance
 
Hi,
Welcome to MSDN Newsgroup!

I agreed with hiriumi. It's better to pass your project's Winform Class
derived from System.Windows.Form.

If there is any question, please feel free to join the community and we are
here to support you at your convenience. Thanks again and have a nice day.

Best Regards,

Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Hi ,

I just wanted to check how things are going and whether or not your
problem has been solved.

If there is any question, please feel free to let me know. Thanks for your
understanding!

Best Regards,

Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top