I am using VS 2005.
I read a file using streamreader.
I want to set the progressbar based on where I am in the file. How can I do
that ?
Thank you.
sr = New StreamReader(sF ileName)
line = sr.ReadLine
ProgressBar1.Ma ximum = 800 --how to set the maximum property without
reading the whole file first ?
ProgressBar1.Mi nimum = 0
ProgressBar1.St ep = 1
ProgressBar1.Va lue = 0
Do While line <Nothing
ProgressBar1.Pe rformStep()
:
line = sr.ReadLine
Loop
I read a file using streamreader.
I want to set the progressbar based on where I am in the file. How can I do
that ?
Thank you.
sr = New StreamReader(sF ileName)
line = sr.ReadLine
ProgressBar1.Ma ximum = 800 --how to set the maximum property without
reading the whole file first ?
ProgressBar1.Mi nimum = 0
ProgressBar1.St ep = 1
ProgressBar1.Va lue = 0
Do While line <Nothing
ProgressBar1.Pe rformStep()
:
line = sr.ReadLine
Loop
Comment