c# - How to close the main form without letting the application close?

后端 未结 3 1440
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 06:59

What i want to do:
->Open a MDI form
->Close the projects main form
->Without closing the application

What i have done:

frmMain          


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-16 07:50

    What I did to get around this is:

    this.Hide()
    

    Probably not the best way to do this, but still.

    You could even get it back by calling

    this.Show()
    

提交回复
热议问题