16,555
社区成员
发帖
与我相关
我的任务
分享
Private Sub Login_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If MessageBox.Show("是否退出?", "确认", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) = System.Windows.Forms.DialogResult.Cancel Then
e.Cancel = True
Else
e.Cancel = False
End
End If
End Sub