Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Simple Midia player code Pin
Rob Philpott9-Feb-09 21:21
Rob Philpott9-Feb-09 21:21 
AnswerRe: Simple Midia player code Pin
MumbleB9-Feb-09 21:23
MumbleB9-Feb-09 21:23 
QuestionHow to create vertical menu by C#2005 Pin
dungpapai9-Feb-09 20:17
dungpapai9-Feb-09 20:17 
AnswerRe: How to create vertical menu by C#2005 Pin
Vimalsoft(Pty) Ltd9-Feb-09 23:32
professionalVimalsoft(Pty) Ltd9-Feb-09 23:32 
QuestionC# code for dongle Pin
Gopal_Kanchana9-Feb-09 20:11
Gopal_Kanchana9-Feb-09 20:11 
AnswerRe: C# code for dongle Pin
V.9-Feb-09 20:22
professionalV.9-Feb-09 20:22 
QuestionProblem in Infragestics Control Pin
vinay_K9-Feb-09 19:57
vinay_K9-Feb-09 19:57 
AnswerRe: Problem in Infragestics Control Pin
vinay_K10-Feb-09 18:31
vinay_K10-Feb-09 18:31 
QuestionReading Image streams from panel control usnig C#.net Pin
sreeraj.a.179-Feb-09 19:54
sreeraj.a.179-Feb-09 19:54 
Questionregistration form Pin
milapjp9-Feb-09 19:53
milapjp9-Feb-09 19:53 
QuestionTraffic System :confused: Pin
Member 39168569-Feb-09 19:40
Member 39168569-Feb-09 19:40 
AnswerRe: Traffic System :confused: [modified] Pin
Smithers-Jones9-Feb-09 22:34
Smithers-Jones9-Feb-09 22:34 

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.