C# ComboBox SQLServer - INSERT SELECT UPDATE DELETE


A basic C# console background and foreground color tutorial.

What we do :

  • Set background color and foreground color of Console.

=== 

using System;

namespace Example_A
{
    class Program
    {
        static void Main(string[] args)
        {
            //SET COLORS
            Console.ForegroundColor=ConsoleColor.Cyan;
            Console.BackgroundColor=ConsoleColor.Gray;

            //PROMPT
            Console.WriteLine( "Whats You Name ?" );

            //get name
            string name = Console.ReadLine();

            //RESET FOREGROUND COLOR
            Console.ForegroundColor = ConsoleColor.Blue;

            //GREET
            Console.WriteLine("Hello "+name);

            //WAIT FOR KEY TO EXIT
            Console.ReadKey();
        }
    }
}

Cheers.

How do You Feel after reading this?

According to scientists, we humans have 8 primary innate emotions: joy, acceptance, fear, surprise, sadness, disgust, anger, and anticipation. Feel free to tell us how you feel about this article using these emotes or via the comment section. This feedback helps us gauge our progress.

Help me Grow.

I set myself some growth ambitions I desire to achieve by this year's end regarding this website and my youtube channel. Am halfway. Help me reach them by:




Recommendations


What do You Think


Previous Post Next Post