我的VB.net中的表单有问题。当我在决策框中单击否时,我想保持我的表单打开。
这是我的代码:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
If (MsgBox("Do you want to quit now?", MsgBoxStyle.YesNo).ToString = "Yes") Then
Dim login As New login
login.Show()
Else
'remain my form
End If
End Sub
请帮帮我。三江源。
答案 0 :(得分:1)