opensource4u
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

opensource4u


 

  [SC] Copies of the Server to StartUp [VB.NET]

اذهب الى الأسفل 
كاتب الموضوعرسالة
القسم التقنى
مدير عام المنتدى
مدير عام المنتدى



عدد المساهمات : 413
تاريخ التسجيل : 26/12/2011

 [SC] Copies of the Server to StartUp [VB.NET] Empty
مُساهمةموضوع: [SC] Copies of the Server to StartUp [VB.NET]    [SC] Copies of the Server to StartUp [VB.NET] Emptyالإثنين يناير 20, 2014 10:08 am

[SC] Copies of the Server to StartUp [VB.NET]
[SC] Copies of the Server to StartUp [VB.NET]
السلام عليكم ورحمة الله وبركاته

كود:
Public Shared Sub AStartup(ByVal Name As String, ByVal Path As String)
Dim Registry As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.CurrentUser
Dim Key As Microsoft.Win32.RegistryKey = Registry.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
Key.SetValue(Name, Path, Microsoft.Win32.RegistryValueKind.String)
End Sub
[ الاستدعاء ] ضع هذا الكود في الفورم لود.

كود:
AStartup(Me.Text, Application.ExecutablePath)
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://opensource.mam9.com
 
[SC] Copies of the Server to StartUp [VB.NET]
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» Chat App using Sql Server And Vb.net
» Remote Desktop Server Client by VB.net
» Remote WebCam Client and Server by VB.net
» Downloading email from pop3 server without winsock by VB.net
» Downloading email from pop3 server without winsock by VB.net

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
opensource4u :: مشاريع مفتوحة المصدر فيجوال بيسك دوت نت و يجوال بيسك 6 (Open source projects vb.net ) :: مشاريع مفتوحة المصدر فيجوال بيسك دوت نت (Open source projects vb.net )-
انتقل الى: