How to add a background with C # codes? [closed]

-1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wellsoft{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Software for Wellsoft Games");
            //Valores Inteiros (int)
            int num_1 = 936;
            int num_2 = 5298;
            int num_3 = 323;
            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.WriteLine("Existe " + num_1 + " onlines em nosso site, " + num_2 + " acesso por dia, é " + num_3 + " membros na equipe.");
            Console.ForegroundColor = ConsoleColor.White;
        }

    }
}

Note: This code does not have elements to add the image, I just put it to understand better.

    
asked by anonymous 15.10.2018 / 14:17

1 answer

1

This is not possible, the most you can do is change the background color and there is a trick to swap the whole background and not just the line, but it does imply running Console.Clear() .

class Program
{
    static void Main(string[] args)
    {
        Console.BackgroundColor = ConsoleColor.DarkGray;
        Console.ForegroundColor = ConsoleColor.White;
        Console.Clear();

        Console.ReadLine();

    }
}
    
16.10.2018 / 19:10