Random Number Guessing Game in C# This is a simple game in c# which allows you to select a number from 1 to 10, then the random number will appear, a message box will prompt if you have guessed the…
Category: C#
C# free source codes and tutorials
TreeView Control Demo in C#
TreeView Control Demo in C# A treenode is a control that allows you to display items in a hierarchical structure. In this c# program, sample nodes are presented and selected node will be displayed in a messagebox. Images can also…
Pass value from one form to another in C#
Pass value from one form to another in C# This is a sample program in c# that passes or transfer value entered in a textbox from source form to the label control of another form. The program will ask you…
Timer Control demo in C#
Timer Control demo in C# Sample program that demonstrates how to use timer control in c#. This sample program will allow the user to start and stop the timer. The value of the label starts at 0 and once you…
ComboBox in C#
ComboBox in C# This is a sample program in c# that shows how to load items in combo box. The program has two combo boxes, the first is the main category combo box and the second is the sub category…
If Else Statement in C#
If Else Statement in C# This is one of the basic things you need to learn not just only in c# but in every programming language you are going to study. This is a sample program in c# that demonstrate…
Month Calendar Conrol in C#
Month Calendar Conrol in C# This is a simple program in c# about month calendar control. The Windows Forms MonthCalendar control presents an intuitive graphical interface for users to view and set date information. The program will display the date,…
Picture box in C#
Picture box in C# This c# program will allow you to browse for jpeg file and display it in a picture box control.
Open File Dialog in C#
Open File Dialog in C# Sample code in c# that will let you get the details of the selected file such as the file path, filename, file size and the file extension
Add, Remove Item in C# Listbox Control
Add, Remove Item in C# Listbox Control This is a step by step tutorial in c# that will teach you on how to add and remove items in listbox The file contains the source code of the program as well…