PopUp hey = new PopUp();
However, for my needs, this needs to be done in another function along with some other things; more importantly, this function has to be able to create several different sub-windows(e.g. PopUp, HelpWindow, EnterSomeInfo, etc.). I tried this:
public CreateWindow( Form which)
{
which frm = new which();
//....
but I get
Quote
The type or namespace 'which' could not be found. Are you missing a using directive or an assembly reference?
I followed these two links:
http://en.csharp-onl...embly_reference
http://blogs.msdn.co.../29/123028.aspx
but they didn't help me much as I need 'which' to be able to refer to several different forms.
Changing
public CreateWindow( Form which)
to
public CreateWindow( class which)
or
public CreateWindow( object which)
also throws similar errors. How can I pass a class(or rather, form) as an argument of a function?

New Topic/Question
Reply



MultiQuote





|