How can I make execution pause until new form is closed?

后端 未结 4 1235
清酒与你
清酒与你 2021-02-19 05:17

I am making a Win Forms application to learn more since I don\'t have much experience with it. In my program, in the main form, I have a button. Clicking it launches another for

4条回答
  •  [愿得一人]
    2021-02-19 05:24

    Simply change Show to ShowDialog; this also let's you get a return value to indicate whether the form considered itself exiting with a specific status (ok, cancel, etc).

提交回复
热议问题