StringBuilder^ sbG1 = gcnew StringBuilder
String^ m1 = '1) Press the cursor keys to move the console window.\n' This example demonstrates the Console.WindowLeft and The grid pattern helps you see the movement of the console window relative to the screen buffer. Then the example moves the console window in response to which of the UP ARROW, DOWN ARROW, LEFT ARROW, or RIGHT ARROW console keys is pressed. The example draws a grid pattern in the screen buffer based on the screen buffer width.
The following example demonstrates the WindowLeft, WindowTop, WindowWidth, WindowHeight, BufferWidth, BufferHeight, and CursorVisible properties and the SetWindowPosition, SetBufferSize, and ReadKey methods. The current operating system is not Windows.