Home > csharp > 3 funny things you can do with C# Console

3 funny things you can do with C# Console

Animated Console Title

Yesterday I am discussing with one of my cousin, he is currently doing a course on C# .Net. He is experimenting lot of things in C#, I came to to 3 funny code snippets to play around C# console through him. I thought it’s a good idea to share with you people.

These code snippets may not help us in our daily life but it’s good know these things.

Fun with Console Title:

Console.Title property sets the title of C# console window.

We can set animated console title like below using following code snippet.

Animated Console Title
Animated Console Title


Moving Console Window

We can use Console.SetWindowSize(numberColumns, numberRows) property to set the console window size. We use this property to create moving console window as shown above with following code snippet.

Animated Window Size Console
Animated Window Size Console


Annoying Beep Sound:

We can use Console.Beep() method to emit beep sound from system speakers.

We can annoy the  user by setting different frequencies and durations.


Bonus Tips:  Understand C# Delegates and Events in C# with simple real world examples

To Download Source Code for Free In return I am just asking you to Follow me on Twitter

[to_like] Download Source Code  [/to_like]

[l2g] Download Source Code [/l2g]

I hope you have enjoyed this article.If so share this post with your friends and also join our mailing list

Wait before leaving. why can’t you follow me on twitter or be a friend on Facebook to get in touch me.

And Finally Don’t Forgot to Join Our Reader List. Read Popular tutorial on HTML5

Arunkumar Gudelli
I am a Simple Guy, Standing Infront of the World, asking you to Follow Me. Don't miss any posts from Me,Subscribe to the RSS Feed. You can connect me via @twitter or @facebook or Google+ or e-mail.