In Focus
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.


  • Capturing File Information

    This article describes a simple approach to capturing and displaying file and file version information.
  • Simple Game in Windows Forms

    This article shows you a small game by using simple text box ,buttons and dropdown list.
  • 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 give you a richer chat experience.
  • Communication Between Two Forms

    The aim of the program is to send a message between different forms.
  • 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+ drawing, menus and panel control.
  • 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.
  • 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 iTextSharp DLL to discover and map the fields available within an existing PDF.
  • 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.
  • 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#.
  • Checked ListBox Control In C#

    The following source code will provide the use of CheckedListBox Control In C#.
  • Adding Items to a ListBox

    Sample code shows you how to add items to a list box.
  • 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.
  • 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.
  • Owner Draw ListBox Control with Images

    In this article we will see how to write owner drawn ListBox control.
  • 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 article we can add some additional features to the form.
  • Extending The DataGridViewCheckBoxCell To Include Text

    Tutorial on how to add text inside a checkbox cell in the DataGridView control.
  • 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.
  • 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.
  • 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 properties.
  • 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).
  • View More