تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
#AutoUpdater C
#1
عند دخول البرنامج
أريد يطلع رساله يوجد تحديث جديد
وتكون علئ  : https://dl.dropboxusercontent.com/s/gaxr...update.txt
الرد }}}
تم الشكر بواسطة:
#2
PHP كود :
public Form1()
{
 
   InitializeComponent();
 
   System.Threading.Thread thread = new System.Threading.Thread(checkupdate) { IsBackground true };
 
   thread.Start();
}

void checkupdate()
{
 
   string url "https://dl.dropboxusercontent.com/s/gaxr0fsgogvrok2/update.txt";
 
   string newver = new System.Net.WebClient().DownloadString(url);
 
   newver newver.Replace(","".");
 
   if (newver != Application.ProductVersion
 
   {
 
       MessageBox.Show("New version: " newver);
 
       //..........
 
   }

الرد }}}
تم الشكر بواسطة: Sajad , Amir_Alzubidy
#3
(07-10-17, 06:08 PM)a.ahmed كتب :
PHP كود :
public Form1()
{
 
   InitializeComponent();
 
   System.Threading.Thread thread = new System.Threading.Thread(checkupdate) { IsBackground true };
 
   thread.Start();
}

void checkupdate()
{
 
   string url "https://dl.dropboxusercontent.com/s/gaxr0fsgogvrok2/update.txt";
 
   string newver = new System.Net.WebClient().DownloadString(url);
 
   newver newver.Replace(","".");
 
   if (newver != Application.ProductVersion
 
   {
 
       MessageBox.Show("New version: " newver);
 
       //..........
 
   }

ياشيخ أحمد ممكن
 إذا تنفظ الأمر يتحمل ProgressBar1 ؟
الرد }}}
تم الشكر بواسطة:


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم