08-12-17, 02:28 AM
هذه طريقة على افتراض أن زر إغلاق الفورم هو Button2
PHP كود :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Dispose()
End Sub
Private Sub Form2_FormClosing(ByVal sender As Object, ByVal e As FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
End Sub

