Jump to content
أحلى نادي لأحلى أعضاء
Search In
  • More options...
Find results that contain...
Find results in...

طريقة صنع برنامج دونلودر بالفيجوال بيسك

Recommended Posts

السلام عليكم ورحمة الله وبركاته 

طريقة صنع Downloader بال VB.NET 

طريقة سهلة تابع معي.....

1-نصمم شكل البرنامج مع اضافة Save File Dialog

2-نضع اكواد اختيار مكان حفظ الملف

[rtl]SaveFileDialog1.Filter = "JPeg Image|*.jpg|.exe|*.exe|.rar|*.rar|.zip|*.zip|.mp3| *.mp3"
TextBox1.Text = SaveFileDialog1.FileName

3-نضع اكواد Download

Public WithEvents download As WebClient
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
download = New WebClient
download.DownloadFileAsync(New Uri(TextBox2.Text), TextBox1.Text)
End Sub

وجوب وضع بعض التعديلات

4-اخر خطوة كود يجب وضعه في اي مكان بالفورم 


Private Sub download_DownloadProgressChanged(ByVal sender As Object, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles download.DownloadProgressChanged
ProgressBar1.Value = e.ProgressPercentage]
End Sub

Share this post

Link to post
Share on other sites

يُسع ـدني أإلـرٍد على مـوٍأإضيعكًـم
وٍأإألتلـذذ بِمـآ قرٍأإتْ وٍشآهـدتْ
تـقبلـوٍآ خ ـآلص وَدْي وَتَقـدْيِـرِي
لآآقـلأم ـكُم أإلجمـيله

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.