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.

Articles

  • 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...
  • 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 i...
  • 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 a...
  • 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 prope...
  • 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).
  • Using the BackgroundWorker Component with Composite User Controls

    In this article you will learn how to use the BackgroundWorker Component with user controls in C#.BackgroundWorker,
  • Creating Run-Time Menus in C#

    Sample example on how to create runtime menus. This article demonstrates how to add menu item and remove menu items at runtime in c#.
  • ColorDialog In C#

    A ColorDialog control is used to select a color from available colors and also define custom colors. This article demonstrates how to use a ColorDialog in Windows Forms and C#.
  • Using LinkLabel In Windows.Forms

    In this article, I am going to explain how to use a LinkLabel in a Windows Forms app using Visual studio 2017.
  • View More