Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. change background of console

change background of console

Scheduled Pinned Locked Moved C#
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lucluv
    wrote on last edited by
    #1

    how can i change the background color of console window not only of text area but of hole background when we run the app. AMit Katiyar

    R 2 Replies Last reply
    0
    • L lucluv

      how can i change the background color of console window not only of text area but of hole background when we run the app. AMit Katiyar

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #2

      If your using .NET 2.0, all this has been made very easy for you. eg: Console.BackgroundColor = ConsoleColor.Blue; Console.Clear(); If not, then its down the old InterOp path I'm afraid. Regards, Rob Philpott.

      1 Reply Last reply
      0
      • L lucluv

        how can i change the background color of console window not only of text area but of hole background when we run the app. AMit Katiyar

        R Offline
        R Offline
        Rob Philpott
        wrote on last edited by
        #3

        oh yes, there's this: http://www.codeproject.com/csharp/console_apps__colour_text.asp[^] to get your started if you're not on .NET 2.0 This article shows you how to change the foreground colour, and would be easy to modify to change the background. Regards, Rob Philpott.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups