Strings and Regular Expressions
String is the most common data type found in almost any programming languages. A string is a group of characters such as letters, numbers or symbols. It is declared using…
Random Number Generation
We use the ;class to generate random numbers. The Random class provides a method for generating random numbers. Each number has an equal chance of getting picked. We use the Next method to…
System.Math Class
You can use the ;class to perform certain mathematical calculations. You can use its method to round numbers, get the square root of a certain number, or determine the result of…
Date Difference Calculator
This tutorial guides you through the creation of a Time Difference Calculator which determines the difference of two given dates and returns the result in days. The program uses the ;and ;methods.…
System.DateTime Class
The class of the .NET Framework allows you to use, store, and manipulate data of time and date. It has methods for manipulation of dates such as adding or subtracting…
User Controls
You can create your own controls if you don’t find what you want from the list of predefined controls available in .NET. You may need to create your own control…
Mouse Events
You can use several special events to react to certain mouse interactions to the control. You have seen the Click event which occurs when the a control is clicked by the mouse…
SaveFileDialog Control
The Save File Dialog control () allows you to save or write data to a specified file. The dialog allows you to browse your file system and pick a directory, then type…
OpenFileDialog Control
The Open File Dialog control () allows you to open and read file contents such as texts from text files. The dialog allows you to browse your file system and pick a…
FolderBrowserDialog Control
The Folder Browser Dialog control () allows you to browse for a directory in your system. The control uses a tree view to show all the folders. The Browser shows the Desktop…