TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
thiago costa
NA
319
0
Add progress bar to FTP upload. Code works but no progr.bar
Aug 3 2013 12:44 AM
Hello there guys, Below is my working code...
It works, it uploads 2 files to my FTP server...
I want to add a progress bar, is it too hard ??? It doesn't matter if it is individual stats for each file, or one for both, which ever is less code :D
Thank you so much guys.
I know there are other ways to upload more than one file, but this is the easiest way I found.
I am hoping I can add a progress bar to the existing code, rather than making fresh code... Only because this code here I am understanding well.
Thanks again !!!!
private void button4_Click(object sender, EventArgs e)
{
string FileName = "c:\\slides\\" + TB_slideid.Text + ".gif";
string FileName2 = "c:\\slides\\" + "descript2.png";
if (TB_itemid.Text != "")
{
try
{
WebRequest request = WebRequest.Create("ftp://2wheelsgonewild.com/public_html/ebay/" + TB_itemid.Text + "/");
request.Method = WebRequestMethods.Ftp.MakeDirectory;
request.Credentials = new NetworkCredential("wijjsufc", "password");
using (var resp = (FtpWebResponse)request.GetResponse()) ;
}
catch
{
MessageBox.Show(" =D Folder already exists, select a new ITEM ID ...lol" + TB_itemid.Text + " is already exists in server :D ");
}
Upload(FileName);
Upload(FileName2);
FACE_upload.Text = ": D";
FACE_upload.ForeColor = System.Drawing.Color.Green;
}
else
{
MessageBox.Show("Make sure ITEM ID is not empty. -.-''");
}
}
Reply
Answers (
8
)
Unable to create manifest resourse
how to check if user already exists in database using vb.net