Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Xolara's Tutorials
#2
A1 Downloader

Hey

First of all ill list what you will need for this tutorial

3 Textboxes
4 Labels
1 button
1 Progressbar
1 FolderBrowserDialog

there wont be much explanation just the full code i putted in <!-- sTongue --><img src="{SMILIES_PATH}/icon_razz.gif" alt="Tongue" title="Razz" /><!-- sTongue -->

Code:
Imports System.Net
Public Class Form1
    Public WithEvents download As New WebClient

    Private Sub TextBox2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.Click
        FolderBrowserDialog1.ShowDialog()
        TextBox2.Text = FolderBrowserDialog1.SelectedPath
    End Sub

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

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        TextBox2.Text = FolderBrowserDialog1.SelectedPath
        download.DownloadFileAsync(New Uri(TextBox1.Text), TextBox2.Text + "\" + TextBox3.Text)
    End Sub
End Class

my textboxes is like this
Textbox1 = Link
Textbox2 = Location
Textbox3 = Name

Code:
download.DownloadFileAsync(New Uri(the link here), Location here + "\" + Name of it like wow.exe etc)

Simple code play with it a little <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->
Link for youtube video : http://www.youtube.com/watch?v=IB6dNvWxoKU
Movie duration is :2:41


Attached Files
.zip   Downloadtutorial.zip (Size: 79.58 KB / Downloads: 915)
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]


Messages In This Thread
Xolara's Tutorials - by xolara - 10-01-2010, 10:14 PM
Re: Xolara's Tutorials - by xolara - 10-01-2010, 10:32 PM
Re: Xolara's Tutorials - by xolara - 10-04-2010, 03:30 PM
Re: Xolara's Tutorials - by xolara - 10-04-2010, 05:27 PM
Re: Xolara's Tutorials - by xolara - 10-04-2010, 06:56 PM
Re: Xolara's Tutorials - by xolara - 10-07-2010, 03:36 AM
Re: Xolara's Tutorials - by xolara - 01-29-2011, 01:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Step by Step tutorials of VB! Himansh 1 10,052 09-28-2011, 02:05 AM
Last Post: xolara

Forum Jump:


Users browsing this thread: 1 Guest(s)