Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#C#4.0
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, 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
Posted 10-Dec-12 4:30am
Edited 11-Dec-12 2:21am
v2
Comments
ryanb31 at 10-Dec-12 10:49am
   
Can you please clarify what you are asking?
jibesh at 15-Dec-12 22:52pm
   
@Emily Alice please do not use the solution field to update it is supposed to meant for solution not for the comments. if you want to add comments in future please use the 'Improve Question' link at the right bottom of your question and edit your question. Thanks
jibesh at 16-Dec-12 3:58am
   
what is the error you are getting? Please specify what is not working or any exception message etc so that we can get a clue of the nature of the problem unless otherwise mention the actual problem you wont get a proper answer here.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Please read my project and help me, I think in forum have a lot of coder excellent, once again I pressing and beg everyone help me. please penetrate for me. I'm illiterate in program.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 840
1 OriginalGriff 407
2 Abhinav S 303
3 Manas Bhardwaj 285
4 thatraja 210
0 Sergey Alexandrovich Kryukov 7,967
1 OriginalGriff 4,332
2 Peter Leow 3,699
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 15 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid