M
Marc Scheuner [MVP ADSI]
Folks,
I have a plug-in system where I have a host that creates child forms
to be displayed (in an MDI manner). One requirement is that if certain
conditions apply, a child form should not be created, e.g. I would
have to be able to abort the child's constructor, if I see that
certain things are missing.
How can I do this? I come from Delphi, and we used to have a "silent"
exception called "Abort" there - throw it in the constructor and the
execution of the constructor was stopped right there, and a null
pointer was returned (instead of a created instance) - is there
something similar in C# ? Can't seem to find anything to that
effect.....
Thanks!
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
I have a plug-in system where I have a host that creates child forms
to be displayed (in an MDI manner). One requirement is that if certain
conditions apply, a child form should not be created, e.g. I would
have to be able to abort the child's constructor, if I see that
certain things are missing.
How can I do this? I come from Delphi, and we used to have a "silent"
exception called "Abort" there - throw it in the constructor and the
execution of the constructor was stopped right there, and a null
pointer was returned (instead of a created instance) - is there
something similar in C# ? Can't seem to find anything to that
effect.....
Thanks!
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch