C#

C-Sharp

Fill Data Based on DataGridViewComboBoxColumn in C# and MySQL Database

Submitted by janobe on
In this tutorial, I will teach you how to fill the data in the DataGridViewComboBoxColumn using C# and MySQL database. This method has the ability to add a combobox column in the datagridview. It also has the capacity to fill the combobox with data from the database. This method is very useful when you are dealing with datagridview control.

The Simple Way to Navigate Records Based On ListView in C#

Submitted by janobe on
This time, I will teach you how to navigate records based on ListView in C# and MySQL Database. This method has the ability to navigate records in the ListView. It also provides a next and previous button that allows the movement of records back and forth. In this way, you can control the data to be displayed in the listview.

The Easy Way to Search Data in ListView Using C# and MS Access Database

Submitted by janobe on
In this tutorial, I will teach you how to search for data in the listview with ease by using MS Access database and C#. This method is the easiest way to retrieve data in the database and display it into the listview. It also has an automatic searching of data in the listview. This technique is very useful for you when you are a beginner in this field.

Simple Search Based on Two Columns in C# and MySQL Database

Submitted by janobe on
In this tutorial, I will teach you how to create a simple search based on two columns in c# and MySQL database. This program will illustrate how to search for data or records in the database based on two fields in the table. It has an automatic search for data in the database that will be displayed into the datagridview. Let’s begin.

Calculate Distance Between 2 Points

Submitted by kingwash on
This code allows you to calculate distance between two points. Download the zip file or copy/paste the code below. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication3 { class Program { static void Main(string[] args) { Console.WriteLine("Please Enter x1 and y1 coordinates:"); double x1 = Convert.ToDouble

How to Disable Previous Date in DateTimePicker Using C#

Submitted by janobe on
In this tutorial I will teach you how to disable previous date in the datetimepicker using c#. This simple program will help you for filtering the date displayed in the datetimepicker. It will disable the dates in the calendar beyond the current date. Hope this simple program will help you if you encounter this kind of problem. Let’s begin.

Calendar with Easter Date and Hard Copy Printout

Submitted by nostradamus1566 on
This is the C# version of my calendar program, (in June 2017 I wrote a similar version in PHP). This C# version can display a calendar of 12 months for any year from 1583 to 2099, and also the date of Easter Sunday. The program includes a feature to allow you to print the calendar on paper or to send the calendar text to a PDF driver, (if you have one installed). Written using Visual Studio 2010

How to Load Data in the Listview Using C# and MySQL Database

Submitted by janobe on
The Listview control is used to display a collection of items. This also provides many ways to arrange and display items with item text and an icon (optionally) is used to determine the type of item. So, now I’m going to teach you how to load data in the ListView using C# and MySQL Database. This is just a simple program but I’m pretty sure that this method will help you when you encounter problem of displaying set of data in the database and can be displayed in the Listview.

How to Create File Directory in C#

Submitted by janobe on
Now, let’s learn how to create a file directory in C#. A directory is a container that is used to store and organized files that are arranged according to their importance. This simple program will help you create a file directory with ease. All you have to do is set the path where you want to create the directory in the textbox and it will create automatically. This is the use of System.IO.