منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
#AutoUpdater C - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة السي شارب C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=175)
+--- قسم : قسم اسئلة C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=176)
+--- الموضوع : #AutoUpdater C (/showthread.php?tid=22023)



#AutoUpdater C - adel500 - 07-10-17

عند دخول البرنامج
أريد يطلع رساله يوجد تحديث جديد
وتكون علئ  : https://dl.dropboxusercontent.com/s/gaxr0fsgogvrok2/update.txt


RE: #AutoUpdater C - a.ahmed - 07-10-17

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);
 
       //..........
 
   }




RE: #AutoUpdater C - adel500 - 17-10-17

(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 ؟