Changing Console Window's size throws ArgumentOutOfRangeException

前端 未结 4 1091
有刺的猬
有刺的猬 2021-01-07 19:39

I am trying to set the size of the Console Window in a c# console application. I get an ArgumentOutOfRangeException with this message:

Th

4条回答
  •  猫巷女王i
    2021-01-07 19:56

    Console height is specified in rows (lines), not pixels.

    http://msdn.microsoft.com/en-us/library/system.console.windowheight.aspx

提交回复
热议问题