13-03-23, 11:44 AM
السلام عليكم ورحمة الله
ارجو المساعدة في كود لاعادة تشغيل المشروع
===========================================
كود لاغلاق النظام
Try
Dim frm As New DialogResult
frm = MessageBox.Show("هل تريد الخروج من النظام", " الخروج من النظام ", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation)
If frm = DialogResult.Yes Then
Application.Exit()
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
ارجو المساعدة في كود لاعادة تشغيل المشروع
===========================================
كود لاغلاق النظام
Try
Dim frm As New DialogResult
frm = MessageBox.Show("هل تريد الخروج من النظام", " الخروج من النظام ", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation)
If frm = DialogResult.Yes Then
Application.Exit()
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
