Hi,Does anyone here know of a way to copy an entire directory (with sub-folders and files) to an FTP server? The WebClient and FTPWebRequest classes didn't seem to work, is there another way or am I missing something?Thanks-Josh
Public Class Class1
Public Sub processing(ByRef progBar As Windows.Forms.ProgressBar)
progBar.Minimum = 0
progBar.Maximum = 1000000
For i As Integer = 0 To 1000000
progBar.Value = i
You need to insert an Application.DoEvents() like so:
ProgressBar1.Value = 0
ProgressBar1.Maximum = 10000000
For i As Integer = 0 To 10000000
ProgressBar1.Value = i
If you are just trying to make a progress bar go slow you might consider using something...
Try something like this, you would have two TextBoxes, one for the month and one for the countdown, and one start button.
Dim dMonths As Date
Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
If txtMonths.Text = "" Then Exit Sub...
If you are looking for a good VB.NET book for beginners, I have the Sams Teach Yourself Visual Basic 2005 in 24 Hours, it got me on to a good start. He now has a 2010 version, which I have not tried, but if it is anything like the 2005 version it will give you a good start.
Microsoft also has...