qartal
6
Q:

c# console foreground color

// C# program to illustrate the  
// ForegroundColor property 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using System.Threading.Tasks; 
  
namespace GFG { 
  
class Program { 
  
    static void Main(string[] args) 
    { 
  
        // Display current Foreground color 
        Console.WriteLine("Default Foreground Color: {0}", 
                                 Console.ForegroundColor); 
  
        // Set the Foreground color to blue 
        Console.ForegroundColor 
            = ConsoleColor.Blue; 
  
        // Display current Foreground color 
        Console.WriteLine("Changed Foreground Color: {0}", 
                                Console.ForegroundColor); 
    } 
} 
} 
4
Console.ForegroundColor = ConsoleColor.DarkGreen;
0
			Console.BackgroundColor = ConsoleColor.Green;
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.Clear();
            //green on green
            Console.WriteLine("yo");
            Console.ReadLine();
        
0

New to Communities?

Join the community