tags:

views:

1200

answers:

2

Hi,

I have a console application project in C# 2.0 that needs to write something to the screen in a while loop. I do not want the screen to scroll because using Console.Write or Console.Writeline method will keep displaying text on console screen incremently and thus it starts scrolling.

I want to have the string written at the same position. How can i do this?

Thanks

+6  A: 

Use Console.SetCursorPosition to set the position. If you need to determine it first, use the Console.CursorLeft and Console.CursorTop properties.

Jon Skeet
A: 

Thanks Skeet, I worked :).

pradeeptp