Private Sub frmSellProduct_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If 不想关闭=true Then e.Cancel = True End If End Sub