Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: I thought it'd be longer, really. Pin
fly90427-May-09 1:22
fly90427-May-09 1:22 
GeneralRe: I thought it'd be longer, really. Pin
EliottA27-May-09 4:13
EliottA27-May-09 4:13 
GeneralRe: I thought it'd be longer, really. Pin
OriginalGriff27-May-09 4:24
mveOriginalGriff27-May-09 4:24 
GeneralRe: I thought it'd be longer, really. Pin
EliottA27-May-09 4:30
EliottA27-May-09 4:30 
AnswerRe: This was what I wanted Pin
Dave Kreskowiak27-May-09 3:51
mveDave Kreskowiak27-May-09 3:51 
QuestionTrackbar Pin
yesu prakash26-May-09 22:35
yesu prakash26-May-09 22:35 
AnswerRe: Trackbar Pin
Eddy Vluggen26-May-09 22:38
professionalEddy Vluggen26-May-09 22:38 
AnswerRe: Trackbar Pin
OriginalGriff26-May-09 22:54
mveOriginalGriff26-May-09 22:54 
I think you mean a progress bar - something to show the user haw far through you are? Rather than a track bar - something to let the user change numbers?

if so then:
FileInfo fi = new FileInfo(fileName);
ProgressBar pb = this.pbShowProgress;
pb.Maximum = (int)fi.Length;
string line;
while ((line = file.ReadLine()) != null)
    {
    pb.Value += line.Length;
    }


You may want to add using(...) and / or try - catch to this.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

QuestionRead XML Data from C# Pin
QuickDeveloper26-May-09 22:24
QuickDeveloper26-May-09 22:24 
AnswerRe: Read XML Data from C# Pin
tom57200726-May-09 22:35
tom57200726-May-09 22:35 
Questionreading text file and calculating the working hours for each employee Pin
emmy_23200326-May-09 22:14
emmy_23200326-May-09 22:14 
QuestionRe: reading text file and calculating the working hours for each employee Pin
Rajesh R Subramanian26-May-09 22:22
professionalRajesh R Subramanian26-May-09 22:22 
AnswerRe: reading text file and calculating the working hours for each employee Pin
emmy_23200326-May-09 22:25
emmy_23200326-May-09 22:25 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff26-May-09 22:36
mveOriginalGriff26-May-09 22:36 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200326-May-09 22:47
emmy_23200326-May-09 22:47 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff26-May-09 23:02
mveOriginalGriff26-May-09 23:02 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200327-May-09 0:16
emmy_23200327-May-09 0:16 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 0:48
mveOriginalGriff27-May-09 0:48 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200327-May-09 1:22
emmy_23200327-May-09 1:22 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 1:28
mveOriginalGriff27-May-09 1:28 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200327-May-09 1:36
emmy_23200327-May-09 1:36 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 1:54
mveOriginalGriff27-May-09 1:54 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 1:55
mveOriginalGriff27-May-09 1:55 
GeneralRe: reading text file and calculating the working hours for each employee Pin
OriginalGriff27-May-09 4:29
mveOriginalGriff27-May-09 4:29 
GeneralRe: reading text file and calculating the working hours for each employee Pin
emmy_23200327-May-09 20:58
emmy_23200327-May-09 20:58 

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.