Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
Questionhelp files CHM Pin
picasso222-Apr-06 17:37
picasso222-Apr-06 17:37 
AnswerRe: help files CHM Pin
Ed.Poore22-Apr-06 19:29
Ed.Poore22-Apr-06 19:29 
QuestionHow to Populate .net Grid Control by OledbDataReader Pin
shoaibnawaz22-Apr-06 12:28
shoaibnawaz22-Apr-06 12:28 
QuestionChange the language in Win Form !!! Pin
mrkeivan22-Apr-06 11:26
mrkeivan22-Apr-06 11:26 
AnswerRe: Change the language in Win Form !!! Pin
Daniel Grunwald23-Apr-06 2:49
Daniel Grunwald23-Apr-06 2:49 
QuestionVerify Tape Drive Has Media Inserted. Pin
jfilburn22-Apr-06 9:07
jfilburn22-Apr-06 9:07 
QuestionPocket PC Clipboard? Pin
DanielSefton22-Apr-06 6:47
DanielSefton22-Apr-06 6:47 
Questionprogressbar problem Pin
wistiti522-Apr-06 4:49
wistiti522-Apr-06 4:49 
Hello,

I have a problem with the progressbar in the following code:

FtpClient ftp = new FtpClient("ftpadres", "user", "password",ttl,21);
try
{
ftp.Login();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

ftp.ChangeDir("vrbo");

string fullPath = txtLoggedInSource.Text;
string[] dir = fullPath.Split(new Char[] { '\\' });
int length = dir.Length;
string directory = dir[length - 1];

ftp.MakeDir(bedrijfid + "_" + directory + "_" + timestamp);
ftp.ChangeDir(bedrijfid + "_" + directory + "_" + timestamp);

DirectoryInfo dir2 = new DirectoryInfo(txtLoggedInSource.Text);
FileInfo[] files = dir2.GetFiles();

int filecount = files.Length;

pbStatus.TabIndex = 0;
pbStatus.Maximum = filecount;
pbStatus.Minimum = 1;
pbStatus.Step = 1;


/* THIS WORKS PERFECT !!!

for (int i = pbStatus.Minimum; i <= pbStatus.Maximum; i++)
{
pbStatus.PerformStep();

}
* */


// HERE THE PROGRESSBAR DOESNT MOVE
foreach (FileInfo f in files)
{
ftp.Upload(txtLoggedInSource.Text + "\\" + f.Name);
pbStatus.PerformStep();
}
label1.Text = "All files are upload successfully";
ftp.Close();


Can someone please help me why it doesn't work with upload

Thx

wistiti 5
GeneralRe: progressbar problem Pin
Guffa22-Apr-06 6:02
Guffa22-Apr-06 6:02 
AnswerRe: progressbar problem Pin
Ravi Bhavnani22-Apr-06 6:07
professionalRavi Bhavnani22-Apr-06 6:07 
GeneralRe: progressbar problem Pin
kasik22-Apr-06 7:07
kasik22-Apr-06 7:07 
GeneralRe: progressbar problem Pin
Ravi Bhavnani22-Apr-06 18:13
professionalRavi Bhavnani22-Apr-06 18:13 
Questionvoice modem and speaker in C# Pin
biruk_haileye22-Apr-06 1:52
biruk_haileye22-Apr-06 1:52 
AnswerRe: voice modem and speaker in C# Pin
Leyu4-May-06 19:38
Leyu4-May-06 19:38 
QuestionExporting word file to text file Pin
Sahar_kh22-Apr-06 1:49
Sahar_kh22-Apr-06 1:49 
AnswerRe: Exporting word file to text file Pin
sujithkumarsl22-Apr-06 6:56
sujithkumarsl22-Apr-06 6:56 
QuestionCrystal Reports viewing Pin
pavanabollineni21-Apr-06 20:13
pavanabollineni21-Apr-06 20:13 
AnswerRe: Crystal Reports viewing Pin
Sean8922-Apr-06 14:56
Sean8922-Apr-06 14:56 
QuestionTextBox databinding problem Pin
wasife21-Apr-06 19:47
wasife21-Apr-06 19:47 
AnswerRe: TextBox databinding problem Pin
tvshkaa22-Apr-06 19:45
tvshkaa22-Apr-06 19:45 
GeneralPut a Chatroom in your site! Free Ajax C#.NET Simple Chat Code. Pin
spilafis21-Apr-06 19:07
spilafis21-Apr-06 19:07 
GeneralRe: Put a Chatroom in your site! Free Ajax C#.NET Simple Chat Code. Pin
leppie21-Apr-06 22:20
leppie21-Apr-06 22:20 
Questionmedia encoder Pin
d_onK21-Apr-06 18:02
d_onK21-Apr-06 18:02 
Questionrecording video clips Pin
d_onK21-Apr-06 17:58
d_onK21-Apr-06 17:58 
Question'Access' a protected Access 97 database with Access 2003 Installed Pin
ndavie21-Apr-06 15:07
ndavie21-Apr-06 15:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.