How to Alert the user in C# console application
You can use “\a” to alert the user with the system beep sound. The following example alerts the user for input
private static void KeywordExample()
{
Console.Write("\a Your name please" );
string @MyString = Console.ReadLine();
Console.Write(@MyString);
}
Well thx a lot for that post :)
ReplyDeleteI mean I program a bit in #C...and have obviously used Console.Write()/Console.Writeline() tons of time..but did not know that one could trigger the beep sound by using Console.Write("\a")....thx again.