You could create a factory class that creates the form for you.
public class CreateMyForm{
private Form theForm = null;
public static Create(){
if( theForm == null )
theForm = new MyForm();
return theForm;
}
public bool DoesFormExist{
get{
return theForm != null;
}
}
}
Looks like this might be the pattern that delphi is using.
"Paul M" <pa***@sintezis.ro> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hy all
I want to test if my form exist before create one.
In delphi was like
if not Assigned (frmmyform) then frmmyform.create(self);
how is this possible in c#?
TIA
Paul