![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
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?
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jun 2006
Posts: 1
Rep Power: 0
![]() |
add a statusstrip, then click on the little down arrow on the left of it and select the progressbar
|
|
|
|
|
|
#3 |
|
Programmer
|
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. |
|
|
|
|
|
#4 |
|
Expert Programmer
|
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 |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Sep 2004
Posts: 207
Rep Power: 5
![]() |
You'll likely have to start multithreading to get it to updated properly.
__________________
_______________________________ BlazingWolf |
|
|
|
|
|
#6 | |
|
Professional Programmer
|
Quote:
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");
} |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|