Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 14th, 2006, 1:19 AM   #1
KyrinComaBlack
Programmer
 
KyrinComaBlack's Avatar
 
Join Date: Dec 2005
Location: Toronto, Ontario, Canada
Posts: 48
Rep Power: 0 KyrinComaBlack is on a distinguished road
Send a message via MSN to KyrinComaBlack
C# StatusStrip

I tried finding tutorials on google but all I came up was with the 2003 and not the 2005 version. None of the 6 books on C# have anything about the progress bar in the statusstrip or the other progress bar. Can anyone explain how to do it, if you don't mind?
KyrinComaBlack is offline   Reply With Quote
Old Jun 14th, 2006, 5:24 PM   #2
Prey074
Newbie
 
Join Date: Jun 2006
Posts: 1
Rep Power: 0 Prey074 is on a distinguished road
add a statusstrip, then click on the little down arrow on the left of it and select the progressbar
Prey074 is offline   Reply With Quote
Old Jun 15th, 2006, 2:10 AM   #3
KyrinComaBlack
Programmer
 
KyrinComaBlack's Avatar
 
Join Date: Dec 2005
Location: Toronto, Ontario, Canada
Posts: 48
Rep Power: 0 KyrinComaBlack is on a distinguished road
Send a message via MSN to KyrinComaBlack
I know how to add it. I'm talking about make the actual progress bar work. Like
(_________________) => (+++++++++++++ )

sorry for my crappy artwork. Just doing it as ap oint of what I want to do.
KyrinComaBlack is offline   Reply With Quote
Old Jul 29th, 2006, 11:57 AM   #4
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Well I am going to assume that it is inherited from the standard Progress Bar in the C# GUI tools. You have a function called Step() and a member called Value for the progress bar if that is the case, use them accordingly, it should be relatively simple.
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Old Jul 29th, 2006, 2:22 PM   #5
BlazingWolf
Hobbyist Programmer
 
Join Date: Sep 2004
Posts: 207
Rep Power: 5 BlazingWolf is on a distinguished road
You'll likely have to start multithreading to get it to updated properly.
__________________
_______________________________
BlazingWolf
BlazingWolf is offline   Reply With Quote
Old Jul 30th, 2006, 12:51 AM   #6
andro
Professional Programmer
 
Join Date: Oct 2005
Location: California
Posts: 320
Rep Power: 4 andro is on a distinguished road
Send a message via AIM to andro
Quote:
Originally Posted by BlazingWolf
You'll likely have to start multithreading to get it to updated properly.
Not true. Here is a small snippet from something I have that uses a progress bar.

        public void sendMessages()
        {
            int i;

            _progress.Step = 100 / _numberOfMessages;
            for (i = 0; i < _numberOfMessages; i++)
            {
                try
                {
                    _client.Send(_email);
                    _progress.PerformStep();
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    break;
                }
            }

            MessageBox.Show("Sent " + i + " messages");
        }
andro is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:02 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC