Madlibs are fun to build! Building a madlib is a great way to learn fundamental programming concepts. The application will ask a player to enter in words, it will store those words, and then replace words in a quote, story, or other short piece of text that will be written to the console window. The ...continue reading "Simple C# Madlib (Part One)"
Category: Resource
Typewriter Effect
Print out a message letter by letter using a for loop to move through a string, and Thread.Sleep() to pause after each character is written to the console window. using System; namespace TypewriterEffect { class Program { static void Main() { Typewrite("Your text here..."); Console.ReadKey(); } static void Typewrite(string message) { for (int i = ...continue reading "Typewriter Effect"
Hello World 2.0
In this walk through we'll build an interactive Hello World application. Expanding on the simple , we'll make a more advanced version that asks the person using it for their name, and write out a personalized hello to them. We'll also review basic programming concepts along the way. Review of Basic Terms and Concepts Statement: ...continue reading "Hello World 2.0"
Visual Studio Tip: Aligning Elements
Elements can be aligned horizontally and/or vertically with Visual Studio's formatting tools. You can access them at the top of the interface, or through the Format menu. In this screenshot you can see how selecting multiple elements (shift + click) highlights the alignment options at the top of the interface.
Visual Studio Tip: Regions
Regions allow you to name a section of your code to better organize it. You can also collapse or condense regions by using the - and + signs next to the region area. If you hover over a collapsed region, it will show the code inside.
Visual Studio Tip: Formatting Keyboard Shortcut
CTRL + K and then CTRL + D will format your code. This is helpful, for example, if you have code that isn't indented. Using these two keyboard shortcuts will have Visual Studio reformat your code.
Visual Studio Tip: Commenting Multiple Lines
Commenting multiple lines is easy with keyboard shortcuts. Multiple lines can be commented and uncommented by selecting them and clicking the comment icon, or by using the keyboard shortcut [CTRL + E, C] to comment, and [CTRL + E, U] to uncomment. (Microsoft Visual Studio Ultimate 2012 Screenshots)