Check if form is Opened

前端 未结 8 1425
陌清茗
陌清茗 2020-12-30 23:56

I give this question for more knowledge. How can I know if the form is Opened in my application or not, in order not to open it again I mean not to create an instance of the

8条回答
  •  再見小時候
    2020-12-31 00:34

    For more simplicity you may create a public static bool variable which will tell whether the form is opened or not. On form load event assign 'true' and on closed event assign 'false' value.

提交回复
热议问题