Hi
I am making a command line program in VB.Net that goes throught a loop and displays progress on screen like the following:
Done...1%
Now this 1% will increase as the loop progresses.
Problem is to write on command line we have two functions
Write and WriteLine and both writes a new character on the screen so if I use anyone of them my output will become something like this.
Write
------
Done 1% 2% 3% 4%
WriteLine
---------
Done 1%
2%
3%
4%
But what I want it should update the percentage value and not print new value.
This can be very easily achieved in a GUI program whereby I can put a label on a form and keep updating its value but how can I do it in a command line program?
I am making a command line program in VB.Net that goes throught a loop and displays progress on screen like the following:
Done...1%
Now this 1% will increase as the loop progresses.
Problem is to write on command line we have two functions
Write and WriteLine and both writes a new character on the screen so if I use anyone of them my output will become something like this.
Write
------
Done 1% 2% 3% 4%
WriteLine
---------
Done 1%
2%
3%
4%
But what I want it should update the percentage value and not print new value.
This can be very easily achieved in a GUI program whereby I can put a label on a form and keep updating its value but how can I do it in a command line program?