Click here to Skip to main content
15,903,854 members
Home / Discussions / C#
   

C#

 
QuestionVB.Net solution to C# Pin
mehrdadc4818-Apr-10 3:24
mehrdadc4818-Apr-10 3:24 
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 
hey all,
I've implemented progressbar in backgroundWorker...
the progressbar changes on backgroundWorker_ProgressChanged
now i want to upgrade the progress bar, and to add it the progress percent display

that's what i did so far :

private void backgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            ...

            progressBar1.Value = e.ProgressPercentage;

            progressBar1.Refresh();
            int percent = (int)(((double)progressBar1.Value / (double)progressBar1.Maximum) * 100);
            progressBar1.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar1.Width / 2 - 10, progressBar1.Height / 2 - 7));
        }

but the problem is , each progress bar change, the percent text is blinking... (i hope you understand what i meant to)

any idea how to solve that ?

thanks
modified on Sunday, April 18, 2010 7:05 AM

AnswerRe: progressBar with percents display [modified] Pin
Luc Pattyn18-Apr-10 1:11
sitebuilderLuc Pattyn18-Apr-10 1:11 
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 

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.