using System;
using System.Runtime.InteropServices;
public class Program
{
[DllImport("kernel32.dll", ExactSpelling = true)]
private static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern bool EnableScrollBar(IntPtr hWnd, int wSBflags, int wArrows);
public static void Main(string[] args)
{
IntPtr handle = GetConsoleWindow();
EnableScrollBar(handle, 3, 3);
}
}