Dear Friends i want to add a progrress bar in this uploader please help me ...
Imports System.IO
Imports System.Net
Public Class Form1
Private Sub btnUpload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpload.Click
Dim request As System.Net.FtpWebRequest = DirectCast(System.Net.FtpWebRequest.Create("ftp://ftp.uibonline.com/uibsat/saleem.jpg"), System.Net.FtpWebRequest)
request.Credentials = New System.Net.NetworkCredential("ksauib@uibonline.com", "123456")
request.Method = System.Net.WebRequestMethods.Ftp.UploadFile
Dim file() As Byte = IO.File.ReadAllBytes("C:\saleem.jpg")
Dim strs As IO.Stream = request.GetRequestStream()
strs.Write(file, 0, file.Length)
MsgBox("File Uploaded", MsgBoxStyle.Information)
strs.Close()
strs.Dispose()
End Sub
End Class