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


  • C# Message Box

    A Windows Forms MessageBox displays a popup message dialog with action buttons. In this article, you'll learn how to implement a Message Box in C# and Windows Forms.
  • BackgroundWorker In C#

    C# BackgroundWorker component executes code in a separate dedicated secondary thread. In this article, I will demonstrate how to use the BackgroundWorker component to execute a time consuming process
  • ListView in C#

    The ListView in C# provides an interface to display a list of items using different views including text, small images, and large images. In this tutorial, we will learn how to work with the Windows F
  • ListBox in C#

    In this tutorial, we will learn how to create a C# ListBox control at design-time as well as at run-time. We will also see how to create a multiple-column ListBox control with single and multiple sele
  • Button In C#

    Button class in Windows Forms represents a C# Button control. This article demonstrates how to use a Button and its propertoes and methods in a Windows Forms application using C#.
  • Communicating With Serial Port In C#

    C# SerialPort class allows communication with a serial port in C#. Learn to write data via a serial port and receive data from a device connected to a serial port in C#.
  • DataGridView Control In C#

    C# DataGridView. In this step by step tutorial, learn how to use the C# DataGridView Control in Visual Studio 2008.
  • OpenFileDialog In C#

    C# OpenFileDialog control is used to browse and select a file on a computer. In this article, you'll learn how to use the OpenFileDialog in C#.
  • Using Radio Button in GridView

    In this article I am going to give you a brief explanation regarding how to use a Radio button in gridview.
  • Using ListViews in C#

    C# makes life a bit easier with a richer property and method set for ListViews. Here we will learn to use ListViews in C#.
  • Working with Windows TabControl with C#

    Windows TabControl is a useful control that allows you display multiple dialogs tabs on a single form by switching between the tabs. In this tutorial, I will explain how to create and use a TabControl
  • ComboBox In C#

    C# ComboBox is a combination of a TextBox and a ListBox control. Only one list item is displayed at one time in a ComboBox and other available items are loaded in a drop down list. In this article, yo
  • MenuStrip In C#

    A Menu in C# is used for navigation. WinForms MenuStrip control represents menus in C#. In this tutorial, you'll learn how to implement menus using a MenuStrip in C# and WinForms.
  • SaveFileDialog In C#

    Windows SaveFileDialog allows users to save a file. C# SaveFileDialog class represents a Save FileDialog control. In this code sample, you will learn how to use a SaveFileDialog in C# and Windows Form
  • Part I: Simple Color Syntax Code Editor for PHP written in C# and .NET

    The Application is a simple Windows Form program that allows you to open and save the text files edited in the rich edit control, as well as print them out. The program takes advantage of a “syntax” t
  • Syntax Highlighting in RichTextBox Control - Part 2

    This article shows how to perform interactive syntax highlighting within the RichTextBox control.
  • Syntax Highlighting in Rich TextBox Control - Part 1

    This article shows how to perform basic syntax highlighting using the RichTextBox control and C#.
  • RichTextBox in C#

    A RichTextBox control is an advanced text box that provides text editing and advanced formatting features including loading rich text format (RTF) files. In this article, I will demonstrate how to cre
  • Editable ListBox Control

    A ListBox is a read-only list of items. But let us suppose your application needs to edit an item in a listbox at runtime.
  • Using ListBox in C#

    The source code demonstrates how to use a listbox control in C# - adding, deleting and altering strings.
  • Windows Functions - LAG() And LEAD()

    In this article, I am going to discuss the other Windows Functions such as Lead, Lag, First_Value and Last_Value. These functions also work on the Window or Grouped Row Data Set or Partition created b
  • Working With Windows Forms FlowLayoutPanel

    The FlowLayoutPanel control is a container control that provides dynamically layout for the child controls that can be arranged horizontally or vertically. The flow direction of the control sets the d
  • ProgressBar In C#

    C# ProgressBar control of WinForms allows track and show progress of an operation. The code example in this article demonstrates how to use a Progressbar control to build UI with progress.
  • Radio Button In C#

    A RadioButton in WinForms control provides a round interface to select one option from a number of options. You can check a Radio Button using RadioButton.Checked property.
  • PrintDialog In C#

    A PrintDialog control is used to open the Windows Print Dialog and let user select the printer, set printer and paper properties and print a file.
  • View More