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.


  • 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
  • ListView in C#

    A ListView control 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
  • 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
  • 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.
  • ListBox in C#

    In this tutorial, we will learn how to create a 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 selecti
  • 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
  • OpenFileDialog in C#

    An OpenFileDialog control is used to browse and select a file on a computer. This article demonstrates how to use a windows Forms open file dialog in C#.
  • 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.
  • Communicating With Serial Port In C#

    This article will demonstrate how to write and receive data from a device connected to a serial port in C# and .NET. We will be writing the received data to a TextBox on a form, so this will also deal
  • 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.
  • Toolbar In C#

    Build Toolbar In Visual Studio, C# Toolbar, C# ToolStrip, C# Toolbars. Toolbar Buttons,Toolbar Class,Toolbar Control, WinForms Toolbar Controls. ToolBar Windows Forms, Windows Toolbar control
  • Build ToolBars Using ToolStrip Control In C#

    Code examples in this article demonstrates how to Create ToolStrip, Add ToopStrip Items Dynamically, Style ToolStrip Control, and Load Images In ToolStrip Items. C# ToolStrip, WinForms ToolStrip Contr
  • How to Bring up a Find Dialog in the WebBrowser Control using Managed C++

    This article will answers the question, how do I bring up a find dialog in the Web Browser Control?. As easy as you would think this should be, it actually requires some COMplicated manipulation.
  • C# Message Box

    WinForms MessageBox control displays a popup message with actions. The code example demonstrates how launch and use Windows Forms MessageBox in C# and .NET.
  • MenuStrip In C#

    The MenuStrip class is the foundation of menus functionality in Windows Forms. If you have worked with menus in .NET, you must be familiar with the MainMenu control. Now, new way to create menus in C#
  • Notify Icon In C#

    In this article, I will discuss how to add a system tray icon for an application using the NotifyIcon in a Windows Forms application using Visual Studio 2010.
  • NumericUpDown In C#

    A NumericUpDown control allows users to provide a spin (up/down) interface to move through pre-defined numbers using up and down arrows. In this tutorial, we will see how to create a NumericUpDown con
  • Panel In C#

    In this article, we will demonstrate how to create and use a Panel Control in a Windows Forms application.
  • LinkLabel In C#

    A LinkLabel control is a label control that can display a hyperlink. A LinkLabel control is inherited from the Label class so it has all the functionality provided by the Windows Forms Label control.
  • View More