//####### #####
//# # # ##### # # #### # ##### # # #### ##### ###### #####
//# # # # # # # # # # # # # # # # # # #
//##### ## # # # # # # # # # # # # ##### # #
//# ## ##### # # # # # # # # # # # #####
//# # # # # # # # # # # # # # # # # # #
//####### # # # ###### # #### # # ##### #### ##### ###### # #
//***********************************************************************************************************************************
// Project : Changing colors
// Solution : Entry level coding
// Project type : Console application
// Platform : Microsoft.NET 6.00
// Created with : Microsoft Visual Studio Community 2022 (64-bit) Version 17.0.6
// Created : 03/10/2022
// Created By : https://explicitcoder.com
//***********************************************************************************************************************************
// Instructions
// Select this project (Changing colors) from the dropdown box next to the green arrow
// at the top of Visual studio and then click the green play button to start it.
// To stop the program you can either click the close button on the console window or click the red stop button.
//***********************************************************************************************************************************
// Description
// The console window can support different color backgrounds and text. There are 16 colors to select from.
// This program will set the text color to white with a red background.
//***********************************************************************************************************************************
//***********************************************************************************************************************************
// SEE THE WEBSITE FOR MORE INFORMATION https://explicitcoder.com/getting-started
//***********************************************************************************************************************************
namespace Changing_colors
{
class Program
{
static void Main() // The program starts here. Main is the first method called when you run the program.
{
// Set the background color to red.
Console.BackgroundColor = ConsoleColor.Red;
// Set the foreground color to white.
Console.ForegroundColor = ConsoleColor.White;
// Reset the window to use the new colors.
Console.Clear();
// Write some text to the console window.
Console.WriteLine("Red background with white text");
//The following colors are supported;
//Black
//DarkBlue
//DarkGreen
//DarkCyan
//DarkRed
//DarkMagenta
//DarkYellow
//Gray
//DarkGray
//Blue
//Green
//Cyan
//Red
//Magenta
//Yellow
//White
// Without this line the program will end before you have time to see it.
Console.ReadLine();
}
}
}