Animated Console Title
26 Flares 26 Flares ×

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

Author : 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.

Loading Facebook Comments ...

Leave a Reply

26 Flares Twitter 1 Facebook 1 Google+ 22 LinkedIn 2 StumbleUpon 0 Reddit 0 26 Flares ×