Why is my Console Application limiting itself to half the screen?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan Sokalski

    Why is my Console Application limiting itself to half the screen?

    I have a Console Application, and when I do a "Start Without Debugging" to
    test it, everything works, but it will not allow me to make the window wider
    than half my screen. Even if I maximize it, it takes the full height, but
    only half the width. This is very annoying, because sometimes lines are
    longer than half the screen. Why is this, and is there any way to allow me
    to make it take up the whole screen? Thanks.
    --
    Nathan Sokalski
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。



  • Family Tree Mike

    #2
    Re: Why is my Console Application limiting itself to half the screen?

    Change the window properties to 132 columns. The width is probably maxed
    out at 80 columns.

    "Nathan Sokalski" <njsokalski@hot mail.comwrote in message
    news:e1H5fbUOJH A.4752@TK2MSFTN GP04.phx.gbl...
    >I have a Console Application, and when I do a "Start Without Debugging" to
    >test it, everything works, but it will not allow me to make the window
    >wider than half my screen. Even if I maximize it, it takes the full height,
    >but only half the width. This is very annoying, because sometimes lines are
    >longer than half the screen. Why is this, and is there any way to allow me
    >to make it take up the whole screen? Thanks.
    --
    Nathan Sokalski
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。

    >

    Comment

    • Nathan Sokalski

      #3
      Re: Why is my Console Application limiting itself to half the screen?

      Where would I go to change this?
      --
      Nathan Sokalski
      njsokalski@hotm ail.com
      有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。


      "Family Tree Mike" <FamilyTreeMike @ThisOldHouse.c omwrote in message
      news:On1VFfUOJH A.3472@TK2MSFTN GP04.phx.gbl...
      Change the window properties to 132 columns. The width is probably maxed
      out at 80 columns.
      >
      "Nathan Sokalski" <njsokalski@hot mail.comwrote in message
      news:e1H5fbUOJH A.4752@TK2MSFTN GP04.phx.gbl...
      >>I have a Console Application, and when I do a "Start Without Debugging" to
      >>test it, everything works, but it will not allow me to make the window
      >>wider than half my screen. Even if I maximize it, it takes the full
      >>height, but only half the width. This is very annoying, because sometimes
      >>lines are longer than half the screen. Why is this, and is there any way
      >>to allow me to make it take up the whole screen? Thanks.
      >--
      >Nathan Sokalski
      >njsokalski@hotm ail.com
      >http://www.nathansokalski.com/
      >>
      >

      Comment

      • Family Tree Mike

        #4
        Re: Why is my Console Application limiting itself to half the screen?

        Right click on the console window's title bar and select properties. It
        should be on the layout tab, shown as window size.

        "Nathan Sokalski" <njsokalski@hot mail.comwrote in message
        news:uVmRjyUOJH A.4372@TK2MSFTN GP04.phx.gbl...
        Where would I go to change this?
        --
        Nathan Sokalski
        njsokalski@hotm ail.com
        有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。

        >
        "Family Tree Mike" <FamilyTreeMike @ThisOldHouse.c omwrote in message
        news:On1VFfUOJH A.3472@TK2MSFTN GP04.phx.gbl...
        >Change the window properties to 132 columns. The width is probably maxed
        >out at 80 columns.
        >>
        >"Nathan Sokalski" <njsokalski@hot mail.comwrote in message
        >news:e1H5fbUOJ HA.4752@TK2MSFT NGP04.phx.gbl.. .
        >>>I have a Console Application, and when I do a "Start Without Debugging"
        >>>to test it, everything works, but it will not allow me to make the window
        >>>wider than half my screen. Even if I maximize it, it takes the full
        >>>height, but only half the width. This is very annoying, because sometimes
        >>>lines are longer than half the screen. Why is this, and is there any way
        >>>to allow me to make it take up the whole screen? Thanks.
        >>--
        >>Nathan Sokalski
        >>njsokalski@hotm ail.com
        >>http://www.nathansokalski.com/
        >>>
        >>
        >
        >

        Comment

        • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

          #5
          Re: Why is my Console Application limiting itself to half the scre

          That feature is no longer availabe in Vista.

          "张克鹏" wrote:
          alt + enter to solve the problem.
          >

          Comment

          • Stanimir Stoyanov

            #6
            Re: Why is my Console Application limiting itself to half the screen?

            In addition to what Mike suggested, you can set the window Width and Height
            of your Console at start up:

            Console.WindowW idth = Console.Largest WindowWidth
            Console.WindowH eight = Console.Largest WindowHeight

            This will ensure that your Console takes up the whole working area and is
            similar to what PowerShell does.

            --
            Stanimir Stoyanov
            메이저사이트 순위 먹튀검증이 완료된 토토사이트 커뮤니티 - 토토핫 입니다. 저희 토토핫에서는 베팅할때 필수로 점검해야 되는 안전 가이드를 제공하며 안전한 메이저 놀이터 목록과 메이저사이트 먹튀검증 꽁머니사이트를 추천드립니다.


            "Nathan Sokalski" <njsokalski@hot mail.comwrote in message
            news:e1H5fbUOJH A.4752@TK2MSFTN GP04.phx.gbl...
            >I have a Console Application, and when I do a "Start Without Debugging" to
            >test it, everything works, but it will not allow me to make the window
            >wider than half my screen. Even if I maximize it, it takes the full height,
            >but only half the width. This is very annoying, because sometimes lines are
            >longer than half the screen. Why is this, and is there any way to allow me
            >to make it take up the whole screen? Thanks.
            --
            Nathan Sokalski
            njsokalski@hotm ail.com
            有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。

            >

            Comment

            • sloan

              #7
              Re: Why is my Console Application limiting itself to half the screen?

              That trick ROCKS!

              I altered slightly, to get 90%

              Console.WindowW idth = (Console.Larges tWindowWidth * 9 / 10);

              Console.WindowH eight = (Console.Larges tWindowHeight * 9 / 10);



              Thanks!!

              "Stanimir Stoyanov" <stoyanov@REMOV ETHIS.live.comw rote in message
              news:2E4DF843-5854-470C-9216-D063575E5AAE@mi crosoft.com...
              In addition to what Mike suggested, you can set the window Width and
              Height of your Console at start up:
              >
              Console.WindowW idth = Console.Largest WindowWidth
              Console.WindowH eight = Console.Largest WindowHeight
              >
              This will ensure that your Console takes up the whole working area and is
              similar to what PowerShell does.
              >
              --
              Stanimir Stoyanov
              메이저사이트 순위 먹튀검증이 완료된 토토사이트 커뮤니티 - 토토핫 입니다. 저희 토토핫에서는 베팅할때 필수로 점검해야 되는 안전 가이드를 제공하며 안전한 메이저 놀이터 목록과 메이저사이트 먹튀검증 꽁머니사이트를 추천드립니다.

              >
              "Nathan Sokalski" <njsokalski@hot mail.comwrote in message
              news:e1H5fbUOJH A.4752@TK2MSFTN GP04.phx.gbl...
              >>I have a Console Application, and when I do a "Start Without Debugging" to
              >>test it, everything works, but it will not allow me to make the window
              >>wider than half my screen. Even if I maximize it, it takes the full
              >>height, but only half the width. This is very annoying, because sometimes
              >>lines are longer than half the screen. Why is this, and is there any way
              >>to allow me to make it take up the whole screen? Thanks.
              >--
              >Nathan Sokalski
              >njsokalski@hotm ail.com
              >http://www.nathansokalski.com/
              >>
              >

              Comment

              • Mythran

                #8
                Re: Why is my Console Application limiting itself to half the screen?



                "sloan" <sloan@ipass.ne twrote in message
                news:#XHjX4cOJH A.4328@TK2MSFTN GP02.phx.gbl...
                That trick ROCKS!
                >
                I altered slightly, to get 90%
                >
                Console.WindowW idth = (Console.Larges tWindowWidth * 9 / 10);
                >
                Console.WindowH eight = (Console.Larges tWindowHeight * 9 / 10);
                >
                >
                >
                Or you could have used:

                Console.WindowW idth = Console.Largest WindowWidth * 0.9
                Console.WindowH eight = Console.Largest WindowHeight * 0.9

                :D It's math. Multiple ways to do the same thing :)


                hth,
                Mythran


                Comment

                • sloan

                  #9
                  Re: Why is my Console Application limiting itself to half the screen?


                  You should have tested your code dude:

                  Error 1 Cannot implicitly convert type 'double' to 'int'. An explicit
                  conversion exists (are you missing a cast?)

                  That's where I came up with the * 9 / 10 ...




                  "Mythran" <Mythran@commun ity.nospamwrote in message
                  news:7F2804D3-EFA4-4D53-B352-5E221BAA4FB0@mi crosoft.com...
                  >
                  >
                  "sloan" <sloan@ipass.ne twrote in message
                  news:#XHjX4cOJH A.4328@TK2MSFTN GP02.phx.gbl...
                  >That trick ROCKS!
                  >>
                  >I altered slightly, to get 90%
                  >>
                  >Console.Window Width = (Console.Larges tWindowWidth * 9 / 10);
                  >>
                  >Console.Window Height = (Console.Larges tWindowHeight * 9 / 10);
                  >>
                  >>
                  >>
                  >
                  Or you could have used:
                  >
                  Console.WindowW idth = Console.Largest WindowWidth * 0.9
                  Console.WindowH eight = Console.Largest WindowHeight * 0.9
                  >
                  :D It's math. Multiple ways to do the same thing :)
                  >
                  >
                  hth,
                  Mythran
                  >
                  >

                  Comment

                  • Mythran

                    #10
                    Re: Why is my Console Application limiting itself to half the screen?



                    "Michael B. Trausch" <mike@trausch.u swrote in message
                    news:2008102920 3203.15b43689@z est...
                    On Wed, 29 Oct 2008 19:19:36 -0400
                    "Michael B. Trausch" <mike@trausch.u swrote:
                    >
                    >Also, it's not very portable; Windows is the only system where the
                    >"console" has any notion of how large it can become on the given
                    >display.
                    >
                    Furthermore (I should have mentioned this in my last post), setting the
                    Console width and height will throw System.NotSuppo rtedException on
                    non-Windows platforms, i.e., using Mono. Not sure what Microsoft's
                    Rotor does on non-Windows platforms, but I suspect it would do the same
                    thing since there is no way to change the terminal size without the
                    user doing it manually.
                    >
                    --- Mike
                    >
                    --
                    My sigfile ran away and is on hiatus.

                    >
                    Aye, thanks for the info/correction :)

                    Mythran


                    Comment

                    Working...