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
Maria Bili
NA
38
37.4k
Help me fix and make a progressbar recieve in client recieve
Dec 10 2012 10:35 AM
Hi all, I have project about send a recieve file in LAN network between 2 PC, code of progressbar in server run good and code of progressbar recieve file in client program I have write but when debug it don't notify fail but it don't run. Please fix it for me
Code in client program I have add some line and function below that I have mark // in behind code:
public delegate void Updatepgdstatus(int s, int p);//
pgbStatus.Value = 0;//
lblProgressbar.Text = "";//
int progress = 0;//
int size = len;//
progress += len;//
set2(size, progress);//
set3(progress.ToString() + " Byte of " + size + " Byte");//
void set3(string s)//
{
if (InvokeRequired)
{
object[] pList = { s };
lblProgressbar.BeginInvoke(new UpdateListBoxCallBack(OnUpdateLabel1), pList); }
else
{
OnUpdateLabel1(s);
}
}
private void OnUpdateLabel1(String s)//
{
lblProgressbar.Text = s;
}
void set2(int s, int p)//
{
if (InvokeRequired)
{
object[] pList = { s, p };
pgbStatus.BeginInvoke(new Updatepgdstatus(OnUpdatepgdstatus), pList);
}
else
{
OnUpdatepgdstatus(s, p);
}
}
private void OnUpdatepgdstatus(int s, int p)//
{
pgbStatus.Maximum = s; pgbStatus.Value = p;
}
Code of project here:
http://www.mediafire.com/?ly8vnecsyis6jtl
Reply
Answers (
4
)
0
Maria Bili
0
38
37.4k
Dec 17 2012 2:53 AM
The last time, Please help me.
0
Maria Bili
0
38
37.4k
Dec 15 2012 9:51 PM
Once again here is Server code.
http://www.mediafire.com/download.php?do06c6yw2g4c38a
and here is Client code.
http://www.mediafire.com/download.php?s64fz6l8f093275
Please help me.
0
Maria Bili
0
38
37.4k
Dec 14 2012 10:23 AM
Oh I write but it don't run. Please read my project and help me, I think in forum have a lot of coder excellent, once again I pressing everyone help me. please penetrate for me. I'm illiterate in program.
0
Maria Bili
0
38
37.4k
Dec 11 2012 8:37 AM
Oh yes, I will describe again, I want to make a progressbar recieve file in Client program. My ability of programming is not good i will try as I say in #1, so I need help. Thank very much.
Here is project client original.
http://www.mediafire.com/?s64fz6l8f093275
FTP commands on CSharp
XML DataBase - Small Windows Application