Click here to Skip to main content
16,005,682 members
Home / Discussions / C#
   

C#

 
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 
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 
int lines = File.ReadAllLines("filename").Length;


This should give you the number of lines. The entire file is buffered and so if the file is huge you could come into trouble. Else the loop mentioned by musefan is another option.

But still, your code is failing for the reason as I pointed out before.
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 
GeneralRe: Traffic System :confused: Pin
Member 39168569-Feb-09 23:35
Member 39168569-Feb-09 23:35 
AnswerRe: Traffic System :confused Pin
Luc Pattyn10-Feb-09 1:58
sitebuilderLuc Pattyn10-Feb-09 1:58 
GeneralRe: Traffic System :confused: Pin
Member 391685610-Feb-09 8:38
Member 391685610-Feb-09 8: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.