OnInitDialog!?

  • Thread starter Thread starter Mehdi Mousavi
  • Start date Start date
M

Mehdi Mousavi

Hi there,
I need the equivalent MFC's OnInitDialog in C#, so that I can handle any
initialization procedure there, and if something goes wrong, I could dismiss
the dialog (by returning false, or the like).

Any help would be highly appreciated,

Cheers
 
In the Load event (or in the Form constructor), throw a homemade exception
(to distinguish it from system exception) in case of initializtion problem?
 
Back
Top