OnInitDialog!?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mehdi Mousavi

    OnInitDialog!?

    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
    --
    Mehdi Mousavi - Software Architect [ http://mehdi.biz ]


  • Terence Lee

    #2
    Re: OnInitDialog!?

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

    "Mehdi Mousavi" <mehdi_mousavi@ msn.com> ¦b¶l¥ó
    news:ejSXiJipDH A.1960@TK2MSFTN GP12.phx.gbl ¤¤¼¶¼g...[color=blue]
    > 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[/color]
    dismiss[color=blue]
    > the dialog (by returning false, or the like).
    >
    > Any help would be highly appreciated,
    >
    > Cheers
    > --
    > Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
    >
    >[/color]


    Comment

    Working...