none
C# Reload the Main Form from the second Form

    Question

  • Hi,

     

    I have a MainForm which has ToolStrip Menu with one Sub Menu 'application configruation'  which opens the second form 'configForm'.

    The configForm  Job is  to setup parameters of the mainForm.

     

    My question is how can I reload the MainForm  from the second form

    'configForm'.

    Or how can I close the MainForm in the secnod form  'configForm'

     then in the end of  'confogForm'  I can reopen it.  

     

    I am new to the Windows Programming?

     

    Thanks,

     

    MK

    Monday, April 30, 2007 3:40 PM

Answers

  • Application.Restart() would be the easiest way to get this done.  Note that it ends your debug session.
    Tuesday, May 01, 2007 4:19 AM
    Moderator