title: How to remove scroll bar from fullscreen Console in C#?
body: <p>Long story short: I just picked up C# about a week ago. Most of my programming knowledge comes from Java. I want to try my hand at making a text adventure game (yes I know I can used Unity, but I want to make it from scratch) and part of the setup is getting a full screen Console window with no distractions.</p>
  
  <p>I've scavenged about on StackOverflow and so far I've put this together:</p>
  
  <pre><code>    [DllImport("kernel32.dll")]
      private static extern IntPtr GetStdHandle(int handle);
  
      [DllImport("kernel32.dll", SetLastError = true)]
      private static extern bool SetConsoleDisplayMode(IntPtr ConsoleOutput, uint Flags, out COORD NewScreenBufferDimensions);
  
      [StructLayout(LayoutKind.Sequential)]
      public struct COORD
      {
          public short X;
          public short Y;
  
          public COORD(short X, short Y)
          {
              this.X = X;
              this.Y = Y;
          }
      }
  </code></pre>
  
  <p>Alongside this bit in the Main method:</p>
  
  <pre><code>IntPtr hConsole = GetStdHandle(-11);
  SetConsoleDisplayMode(hConsole, 1, out COORD b1);
  
  Console.ReadLine();
  </code></pre>
  
  <p>So I've managed to get in full screen successfully, but problem is a scroll bar is still there.</p>
  
  <p>I've done my best to understand exactly how this works and how the scroll bar would be removed. My current understanding is that the Console's screen buffer needs to be changed to match the size of the screen so that the scroll bar can disappear.</p>
  
  <p>From the code I managed to put together, it seems that the buffer is already being played with in order to go full screen. Looks like the 'SetConsoleDisplayMode' method does that.</p>
  
  <p>So my question is, how do I add in the removal of the scroll bar to this code? My mind is saying it has something to do with the 'COORD' struct but honestly I'm totally out of my element here with a new language and new  concepts (like structs), any help would be appreciated!</p>