a) Start a C# Console Applictaion. b) Open solution exlorer and add refernce to System.Windows.Forms. c) Paste the followng code in the Project Editor.
using System; using System.Globalization; using System.Windows.Forms;
namespace ConsoleApplication1 { class Program { static void Main(string[] args) { InputLanguage myDefaultLanguage = InputLanguage.DefaultInputLanguage; Console.WriteLine("Current input language is now: " + myDefaultLanguage.Culture.EnglishName); Console.ReadLine(); } } }
d) Compile the code and run it.
You should be able to see the current input languag selected in the language bar.
Comments
a) Start a C# Console Applictaion.
b) Open solution exlorer and add refernce to System.Windows.Forms.
c) Paste the followng code in the Project Editor.
using System;
using System.Globalization;
using System.Windows.Forms;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
InputLanguage myDefaultLanguage =
InputLanguage.DefaultInputLanguage;
Console.WriteLine("Current input language is now: " +
myDefaultLanguage.Culture.EnglishName);
Console.ReadLine();
}
}
}
d) Compile the code and run it.
You should be able to see the current input languag selected in the language bar.