Preventing multiple repeated creation forms

xiaoxiao2021-03-06  43

Private Shared FRM As Form2

Private sub Button2_click (byvalgend, byval e as system.eventargs) Handles Button2.click

IF frM is nothing the frm = new form2 else frm.dispose () frm = Nothing button2_click (nothing, nothing) Return End iff.show ()

End Sub Haha, this is also used!

转载请注明原文地址:https://www.9cbs.com/read-52352.html

New Post(0)