C# Tutorial

DateTime Picker Control Using C#

In this tutorial I’m going to show you how to use a DateTimePicker control in C#. The DateTimepicker control allows the user to select a date and a time and to display the date and time with specified format. To start creating this application, let’s create a new project in C# and we will call it as “Dates”. Then from the toolbox drag a DateTmePicker and four Buttons. The design will look like as shown below. da1 Next, to add functionality to our application double click the “Long” button.

How to use a ColorDialog Box in C#

This tutorial will show you how to use a ColorDialog Box in C#. The purpose of ColorDialog box on windows applications is that, it provides a selection of colors. And you can use the ColorDialog Box for various reasons such as letting the user set or change a color of an object or specifying the background color of a windows form application. The ColorDialog Box like as show below. d1 The figure above shows a list of colors, but if you want to have some customize or define your own color to be used.

How to Load data from Database into Combobox using C#

In this tutorial, I will show you how to fill a Combobox with a Data from Microsoft Access Database. As well as how to search specific record from the database using the data in a combobox. To start building with this project, create a new C# project and design the user interface looks like as shown below. c1 Then save it as “ComboFilter” or whatever you want to name this application. After this step, let’s now create a new database in Microsoft Access named “studentdb”.

How to Create an Advance Record Navigation in C#

This tutorial is a continuation of our last topic called “How to Create a Simple Record Navigation in C#”. But at this moment, we will modify our code and add more additional control such as First Record, Last Record and No of Record. And this look like as shown below. d1 To start building with this application, let’s open first our last project called “student_info”. Then add Buttons and Label.

How to Load Data From Database in a Combobox using C#

This tutorial is a continuation of our last topic called “How to Create a Simple Record Navigation in C#”. At this time, I’m going to show you how to load data from Microsoft Access Database into a Combobox using C#. To start with this application, we need to open our project called “student_info” then we will apply the loading of data From Database in a combobox. To do this, change the input field of “Course :” from textbox to combobox.

How to Display Selected Row from Datagridview into Textbox using C#

In this tutorial I’m going to show you how to create an application that will display the selected row from the datagridview into textbox. To start with this application we will create first a database in Microsoft access 2003 and we will name it as “studentdb” for Student Database. Then create a table named “tblstudent” and create a field that will look like as shown below. s1 After this, we will create a new windows form project in C#, then save it as “stud_info”.