Click here to Skip to main content
15,917,328 members
Home / Discussions / C#
   

C#

 
QuestionCombobox Selection from Sql Pin
boiDev9-Feb-09 22:44
boiDev9-Feb-09 22:44 
AnswerRe: Combobox Selection from Sql Pin
musefan9-Feb-09 22:59
musefan9-Feb-09 22:59 
GeneralRe: Combobox Selection from Sql Pin
boiDev9-Feb-09 23:56
boiDev9-Feb-09 23:56 
QuestionAuto text match and replace Pin
M3rov1ngian9-Feb-09 22:25
M3rov1ngian9-Feb-09 22:25 
AnswerRe: Auto text match and replace Pin
Smithers-Jones9-Feb-09 22:33
Smithers-Jones9-Feb-09 22:33 
AnswerRe: Auto text match and replace Pin
Ashfield10-Feb-09 1:36
Ashfield10-Feb-09 1:36 
GeneralRe: Auto text match and replace Pin
M3rov1ngian10-Feb-09 11:48
M3rov1ngian10-Feb-09 11:48 
GeneralRe: Auto text match and replace Pin
Ashfield10-Feb-09 21:31
Ashfield10-Feb-09 21:31 
QuestionChange date format setting of {Regional and Language Options} Pin
M Riaz Bashir9-Feb-09 22:00
M Riaz Bashir9-Feb-09 22:00 
QuestionProblem in DataSet Pin
vinay_K9-Feb-09 21:31
vinay_K9-Feb-09 21:31 
AnswerRe: Problem in DataSet Pin
Kaushal Arora9-Feb-09 23:53
Kaushal Arora9-Feb-09 23:53 
AnswerRe: Problem in DataSet Pin
Abdul Rahman Hamidy10-Feb-09 1:10
Abdul Rahman Hamidy10-Feb-09 1:10 
GeneralRe: Problem in DataSet Pin
Kaushal Arora6-Apr-09 23:05
Kaushal Arora6-Apr-09 23:05 
NewsMyBrowser - Kickstart C# , Make your own Web Browser in few easy steps Pin
three6t9-Feb-09 21:24
three6t9-Feb-09 21:24 
GeneralRe: MyBrowser - Kickstart C# , Make your own Web Browser in few easy steps Pin
musefan9-Feb-09 23:24
musefan9-Feb-09 23:24 
GeneralRe: MyBrowser - Kickstart C# , Make your own Web Browser in few easy steps Pin
Mycroft Holmes10-Feb-09 1:25
professionalMycroft Holmes10-Feb-09 1:25 
GeneralRe: MyBrowser - Kickstart C# , Make your own Web Browser in few easy steps Pin
EliottA10-Feb-09 3:02
EliottA10-Feb-09 3:02 
QuestionStreamReader + ProgressBar Help Pin
MumbleB9-Feb-09 20:46
MumbleB9-Feb-09 20:46 
AnswerRe: StreamReader + ProgressBar Help Pin
ABitSmart9-Feb-09 23:56
ABitSmart9-Feb-09 23:56 
AnswerRe: StreamReader + ProgressBar Help Pin
musefan10-Feb-09 0:01
musefan10-Feb-09 0:01 
Hmmm... i think you doing the whole thing wrong

you said you making effecient then you should def use another thread. I would suggest placing a background worker in your application, then updating the progress bar with the ReportProgress handler.

This is actually not a difficult task to do so you should give it a go. The other issue i find with other threads is debugging errors, but as you have tested code already in UI thread then im sure it would work fine

If you insist on sticking with single thread, then try creating an 'outside the loop' variable for the percentage increase per update, and setting the progress bar value to match that

i.e.

float percentIncrease = 100 / fileinfo.length;//this give you a number to update with per byte

then for each byte processed

ProgressBar.Value = (int)(byteCount * percentIncrease);


something like that anyway Smile | :)

My opinion is... If someone has already posted an answer, dont post the SAME answer

GeneralRe: StreamReader + ProgressBar Help Pin
MumbleB10-Feb-09 0:07
MumbleB10-Feb-09 0:07 
GeneralRe: StreamReader + ProgressBar Help Pin
musefan10-Feb-09 0:17
musefan10-Feb-09 0:17 
GeneralRe: StreamReader + ProgressBar Help Pin
ABitSmart10-Feb-09 1:22
ABitSmart10-Feb-09 1:22 
GeneralRe: StreamReader + ProgressBar Help Pin
MumbleB10-Feb-09 2:25
MumbleB10-Feb-09 2:25 
QuestionSimple Midia player code Pin
Member 39168569-Feb-09 20:38
Member 39168569-Feb-09 20:38 

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.