How to continue executing code after calling ShowDialog()

后端 未结 7 811
走了就别回头了
走了就别回头了 2020-12-17 10:58

the Form.ShowDialog() method causes the code to be halted until the newly called form is closed. I need the code to continue running after the ShowDialog() method is called.

7条回答
  •  爱一瞬间的悲伤
    2020-12-17 11:26

    Is there any reason why you can't have this code as part of the Form2 class? Or use a non-modal dialog? You could use a background worker or even something simple like a timer, but seems like overkill?

提交回复
热议问题