منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : مسعده فى صنع برنامج نحميل
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
ارجه المساعده ضرورى
كيف يمكن عمل برنامج تحميل الملفات سهل
لاكن كيف جعلة لو البرنامج اتقفل مثلآ التحميل كان 40% لو اتفتح تنى يفضل التحميل 40% وى عند الضغط على زر Resume يكمل منغير مشاكل
PHP كود :
Create a New 'HttpWebRequest' object .
HttpWebRequest myHttpWebRequest=(HttpWebRequest)WebRequest.Create("http://www.contoso.com");
myHttpWebRequest.AddRange(50,150);    
// Assign the response object of 'HttpWebRequest' to a 'HttpWebResponse' variable.
HttpWebResponse myHttpWebResponse=(HttpWebResponse)myHttpWebRequest.GetResponse();
// Display the contents of the page to the console.
Stream streamResponse=myHttpWebResponse.GetResponseStream();
StreamReader streamRead = new StreamReaderstreamResponse );
Char[] readBuffer = new Char[256];
int count streamRead.ReadreadBuffer0256 );
Console.WriteLine("\nThe HTML contents of the page from 50th to 150 charaters are :\n  ");    
while (
count 0
{
    
String outputData = new String(readBuffer0count);
    
Console.WriteLine(outputData);
    
count streamRead.Read(readBuffer0256);
}
// Release the response object resources.
streamRead.Close();
streamResponse.Close();
myHttpWebResponse.Close() 
جرب هذا الكود فأنا لم اجربه فقط احتفظت به
smss كتب :
PHP كود :
Create a New 'HttpWebRequest' object .
HttpWebRequest myHttpWebRequest=(HttpWebRequest)WebRequest.Create("http://www.contoso.com");
myHttpWebRequest.AddRange(50,150);    
// Assign the response object of 'HttpWebRequest' to a 'HttpWebResponse' variable.
HttpWebResponse myHttpWebResponse=(HttpWebResponse)myHttpWebRequest.GetResponse();
// Display the contents of the page to the console.
Stream streamResponse=myHttpWebResponse.GetResponseStream();
StreamReader streamRead = new StreamReaderstreamResponse );
Char[] readBuffer = new Char[256];
int count streamRead.ReadreadBuffer0256 );
Console.WriteLine("\nThe HTML contents of the page from 50th to 150 charaters are :\n  ");    
while (
count 0
{
    
String outputData = new String(readBuffer0count);
    
Console.WriteLine(outputData);
    
count streamRead.Read(readBuffer0256);
}
// Release the response object resources.
streamRead.Close();
streamResponse.Close();
myHttpWebResponse.Close() 
جرب هذا الكود فأنا لم اجربه فقط احتفظت به
لم يعمل Sad