Input validation – Numbers Only

Input validation – Numbers Only Few times already I have been asked how can Input validation – Numbers Only be done. Well in c# it is actually very easy. All You need to do is to add a key press event handler and check the currently pressed character. If the character is what you want […]

Swap value between two variables in C#

Swap value between two variables in C# One of the first challenges when we start to learn programming, after Hello world of course :), is swapping a variable and Swap value between two variables in C#. Like almost every programming problem, this one as well has several solutions. Some more effective than others. Although one […]