30-10-14, 03:10 PM
كلام الأخ الوليد صحيح 100%
و تحديثاً على الكود الي ارسلته :
و تحديثاً على الكود الي ارسلته :
كود :
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
If (MsgBox("هل تريد إغلاق الرنامج", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "إغلاق") = MsgBoxResult.Yes) Then
End
End If
End Sub
