Click here to Skip to main content
16,008,469 members
Home / Discussions / C#
   

C#

 
AnswerRe: VB.Net solution to C# Pin
Abhinav S18-Apr-10 3:42
Abhinav S18-Apr-10 3:42 
AnswerRe: VB.Net solution to C# Pin
Brij18-Apr-10 6:24
mentorBrij18-Apr-10 6:24 
AnswerRe: VB.Net solution to C# Pin
Dave Doknjas18-Apr-10 10:18
Dave Doknjas18-Apr-10 10:18 
QuestionOptimising part of a code thats bulky Pin
malcomhfc18-Apr-10 1:21
malcomhfc18-Apr-10 1:21 
AnswerRe: Optimising part of a code thats bulky Pin
Gideon Engelberth18-Apr-10 16:34
Gideon Engelberth18-Apr-10 16:34 
GeneralRe: Optimising part of a code thats bulky Pin
malcomhfc21-Apr-10 10:42
malcomhfc21-Apr-10 10:42 
QuestionprogressBar with percents display [modified] Pin
igalep13218-Apr-10 0:55
igalep13218-Apr-10 0:55 
AnswerRe: progressBar with percents display [modified] Pin
Luc Pattyn18-Apr-10 1:11
sitebuilderLuc Pattyn18-Apr-10 1:11 
Hi,

several comments:

1.
you should turn your progress bar (or the container holding it) into a double-buffered one; there is a property for that.

2.
you should not redo the progress bar stuff if the value hasn't changed, so put it all in a if (progressBar1.Value != e.ProgressPercentage) {...}

3.
you should dispose of all objects you created but no longer need whenever they offer a Dispose() method. Here it is the Graphics you ordered, and the Font (which you could store as a class member and reuse).


[ADDED]
There are several related articles here on CodeProject; here is just one: Extended ProgressBar[^]
[/ADDED]


Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Prolific encyclopedia fixture proof-reader browser patron addict?
We all depend on the beast below.


modified on Sunday, April 18, 2010 7:17 AM

GeneralRe: progressBar with percents display [modified] Pin
igalep13218-Apr-10 1:21
igalep13218-Apr-10 1:21 
GeneralRe: progressBar with percents display Pin
Som Shekhar18-Apr-10 3:58
Som Shekhar18-Apr-10 3:58 
GeneralRe: progressBar with percents display Pin
igalep13218-Apr-10 4:00
igalep13218-Apr-10 4:00 
GeneralRe: progressBar with percents display Pin
Som Shekhar18-Apr-10 4:04
Som Shekhar18-Apr-10 4:04 
GeneralRe: progressBar with percents display Pin
igalep13218-Apr-10 4:08
igalep13218-Apr-10 4:08 
GeneralRe: progressBar with percents display Pin
Som Shekhar18-Apr-10 4:13
Som Shekhar18-Apr-10 4:13 
AnswerRe: progressBar with percents display Pin
igalep13218-Apr-10 11:48
igalep13218-Apr-10 11:48 
QuestionMessage Removed Pin
17-Apr-10 21:19
Nadia Monalisa17-Apr-10 21:19 
AnswerRe: Do I need to uninstall Visual Studio 2008 in order to install VS 2010 Professional ? Pin
OriginalGriff17-Apr-10 21:30
mveOriginalGriff17-Apr-10 21:30 
GeneralRe: Do I need to uninstall Visual Studio 2008 in order to install VS 2010 Professional ? Pin
Nadia Monalisa17-Apr-10 21:40
Nadia Monalisa17-Apr-10 21:40 
QuestionWill my .NET 2.0 Control work in .NET 4.0 application ? Pin
Nadia Monalisa17-Apr-10 21:14
Nadia Monalisa17-Apr-10 21:14 
AnswerRe: Will my .NET 2.0 Control work in .NET 4.0 application ? Pin
Abhinav S17-Apr-10 23:19
Abhinav S17-Apr-10 23:19 
QuestionSelect Area Pin
Frozzeg17-Apr-10 10:44
Frozzeg17-Apr-10 10:44 
AnswerRe: Select Area Pin
Luc Pattyn17-Apr-10 11:42
sitebuilderLuc Pattyn17-Apr-10 11:42 
GeneralRe: Select Area [modified] Pin
Frozzeg17-Apr-10 22:59
Frozzeg17-Apr-10 22:59 
QuestionWaiting until myclass.something() is finished Pin
BuggingMe17-Apr-10 9:16
BuggingMe17-Apr-10 9:16 
AnswerRe: Waiting until myclass.something() is finished Pin
Garth J Lancaster17-Apr-10 16:03
professionalGarth J Lancaster17-Apr-10 16:03 

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.