منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
Programe Is Already Running - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : Programe Is Already Running (/showthread.php?tid=6913)



Programe Is Already Running - محمد - 10-11-12

كيف جعل المشروع يفتح مره واحده عندما يأتى المستخدم من فاته مره أخرى تظهر رساله Programe Is Already Running


Programe Is Already Running - amgadtamer - 10-11-12

من خصائص المشروع قم بتفعيل make single instance
ثم قم بالضغط على application event

وكتابة
PHP كود :
Private Sub MyApplication_StartupNextInstance(sender As ObjectAs ApplicationServices.StartupNextInstanceEventArgsHandles Me.StartupNextInstance
            MsgBox
("program already running")

        
End Sub 



Programe Is Already Running - محمد - 10-11-12

amgadtamer كتب :من خصائص المشروع قم بتفعيل make single instance
ثم قم بالضغط على application event

وكتابة
PHP كود :
Private Sub MyApplication_StartupNextInstance(sender As ObjectAs ApplicationServices.StartupNextInstanceEventArgsHandles Me.StartupNextInstance
            MsgBox
("program already running")

        
End Sub 

اخى
event StartupNextInstance cannot be found


Programe Is Already Running - amgadtamer - 10-11-12

من خصائص المشروع سوف تجد زر application events قم بنقل هذا الكود اليه


Programe Is Already Running - sooriaty03 - 10-11-12

مشكور أخي الكريم وبالفعل تم تجربة الكود وهو يعمل 100%


Programe Is Already Running - محمد - 10-11-12

amgadtamer كتب :من خصائص المشروع سوف تجد زر application events قم بنقل هذا الكود اليه

شكرآ أخى جزاك الله خيرا وجعله في ميزان حسناتك


Programe Is Already Running - The Phantom - 10-11-12

قم بأستخدام ال mutex