Windows Forms
Welcome to Windows Forms section of C# Corner. In this section, you will find various Windows Forms related source code samples, articles, tutorials, and tips.


  • G Gnana  Arun Ganesh

    Adding a Control to a form Programmatically

    In this article I explain how to Add a control to a form programmatically.
  • Shankar M

    DataTable Compute Method

    In this blog, we will learn how to use the Compute Method in DataTable class.
    Shankar M Mar 06, 2019
  • Scott Lysle

    Capturing File Information

    This article describes a simple approach to capturing and displaying file and file version information.
    Scott Lysle Jan 29, 2019
  • Veeresh i

    Simple Game in Windows Forms

    This article shows you a small game by using simple text box ,buttons and dropdown list.
    Veeresh i Jan 24, 2019
  • Abhilash Challissery

    Saving Excel File Data To SQL Server Database Using Windows Desktop Application C#

    This blog explains how to insert data into the SQL Server database from an Excel using stored procedure with the help of XML for bulk data insertion using the Windows desktop application and Visua...
  • Yogesh Mhadgut

    Display Single DataTable Data In Different Columns Of DataGridView

    Here, I will dispaly the data of a single data table in the different columns of DataGridView in C# WindowsForms application.
    Yogesh Mhadgut Jan 01, 2019
  • Mike Gold

    IM Chat Interface for C# and .NET

    This article describes a way to create a colorful chat interface for instant messaging. In this chat interface you can use html and emoticon tags to display colorful text and bitmaps in order to g...
    Mike Gold Dec 12, 2018
  • Giuseppe Russo

    Communication Between Two Forms

    The aim of the program is to send a message between different forms.
    Giuseppe Russo Dec 11, 2018
  • Manisha Mehta

    Opening and Viewing Text and Image Files

    We will start this article with a simple application where we will learn how to open and view text and image files using the OpenFileDialog class. In doing so, we will learn some basics of GDI+ dra...
    Manisha Mehta Dec 06, 2018
  • Muhammad Irfan

    Upload/Display Image In Picture Box Using C#

    In this article, we learn how to browse, view and display an image path in a picture box tool using C# Windows Forms application. OpenFileDialog, PictureBox.
    Muhammad Irfan Dec 06, 2018
  • Timmy Mosuwos

    Configuring A MySQL Database Host IP Address In A Textbox Using Window Form

    This tutorial post is for the beginner who want to understand how to configure an IP Address for the MySQL Database on a Textbox provided.
    Timmy Mosuwos Dec 05, 2018
  • Scott Lysle

    Fill in PDF Form Fields Using the Open Source iTextSharp DLL

    This article describes a quick and simple approach to programmatically completing a PDF document through the use of the iTextSharp DLL. The article also discusses how one might go about using the i...
    Scott Lysle Dec 04, 2018
  • Deepak Sharma

    How to Save Images in MySQL Database Using C#

    This article explains how to save images into a MySQL database in Windows Forms applications using C#. BLOB, TINYBLOB, MEDIUMBLOB, LONGBLOB.
    Deepak Sharma Dec 03, 2018
  • Mahesh Chand

    C# TabControl

    The TabControl manages tab pages where each page may host different child controls. In this article, I will demonstrate how to create and use a TabControl in Windows Forms using C#.
    Mahesh Chand Nov 27, 2018
  • Prasad H

    Checked ListBox Control In C#

    The following source code will provide the use of CheckedListBox Control In C#.
    Prasad H Nov 16, 2018
  • Mahesh Chand

    Adding Items to a ListBox

    Sample code shows you how to add items to a list box.
    Mahesh Chand Nov 16, 2018
  • Shripad Kulkarni

    Editable ListView in C#

    Based on the similar technique used my previous article, the Editable Listbox, we can edit columns and rows of a ListView control.
    Shripad Kulkarni Nov 16, 2018
  • Sanjay Ahuja

    Owner Draw ListBox Control in Windows Forms and C#

    In this article, we will see how to write owner drawn ListBox control using C# and Windows Forms.
    Sanjay Ahuja Nov 15, 2018
  • Vasu

    Owner Draw ListBox Control with Images

    In this article we will see how to write owner drawn ListBox control.
    Vasu Nov 15, 2018
  • Mohammed Ashraf

    Creating Accounting Application With C# - Part Three

    This is the third part of Creating Accounting Application with C# Tutorial series. In the previous article we started our application development with creating main window in MDI format. In this a...
    Mohammed Ashraf Nov 12, 2018
  • Pritish Deshmukh

    Serialization -DeSerialization of Windows Form in C#

    Serialization -DeSerialization of Windows Form in C# In which we can serilaze the window from text box control values also deserialize the it and display the deserializr values with respective thie...
    Pritish Deshmukh Oct 17, 2018
  • Menaka Baskarpillai

    Using SaveFileDialog In Windows.Forms

    In this article, I am going to explain how to use a SaveFileDialog in a Windows.Forms app using Visual Studio 2017.
  • Menaka Baskarpillai

    Using PictureBox In Windows Forms

    In this article, I am going to explain how to use a PictureBox on a Windows.Forms app using Visual Studio 2017.
  • Mike Gold

    A Scrollable MessageBox In C#

    This article demonstrates how to create a message box that contains messages that scroll. This message box also allows you to read the message in from a file as well as change fonts and color prope...
    Mike Gold Sep 23, 2018
  • G Gnana  Arun Ganesh

    Working With Menus In C#

    In this article I elucidate how to adding menus and menu item to Windows forms, Replacing, Cloning, Merging of menus and about Context menus (Popupmenus).