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.

RECENT POSTS

  • [BackgroundWorker Component]: Vowel count without BackGround Thread and DoEvents

    Video Steps 1) The sample exe is started from the explorer 2) After showing the form, start count button is clicked 3) Clicking on the Window Restore option makes the sample in Not Responding Stage (i.e. it is busy with counting vowels) 4) Clicking the cancel button Fades-out the form (Kind of dead) informing the user that sample is not ready and still busy. 5) Waiting for the counting to be completed. Once done the form will become alive
  • [BackGround Worker Sample]: Adding the BackgroundWorker Component

    Video Steps 1) Adds the BackgroundWorker component to the Form 2) Sets the name for the component 3) Then provided handler for all three events supported by it.
  • How to Add ToolTips to Individual Cells in a Windows Forms DataGridView

    Learn how to add tool tips to Individual cells in a Windows Forms DataGridView
  • [RichTextBox Sample]: Video shows the Clipboard Operation on Rich Text. It also shows the use of ...

    Video Steps1) Copies #using stements from Source file 2) Then pastes the conent to the rich text box 3) From the pasted content copies some portion of text to clipboard 4) Opens the wordpad application and pastes it 5) Finally applied some attibutes and shows the undo and redo options
  • [RichTextBox Sample]: This video shows setting different font and font size to a single line of t...

    Video Steps 1) Loads already saved plain text 2) Selects second line of text 3) Applies different font and font style 4) Saves the content and reloads it for a cross check
  • [RichTextBox Sample]: Video shows applying Bold and Italic to the selected text

    1) Loads already saved plain text 2) Applies bold, italic and underline style to some portion of the text 3) Saves the result in Rich text format. (Note plain text won't support text attributes for different portions of the text) 4) Loads the Rich Text content and checks applied text attributes.
  • [RichTextBox Sample]: Loading the Plain Text content into RichTextBox

    Video Steps 1) Loads the plain text content saved in the previous video 2) Shows the loaded content in the richtext box control
  • RichTextBox Sample: Saving the Content to text file

    Saving the Content of the RichTextBox in Text file format
  • [RichTextBox Sample] : Setting up the Form for RichText Box Sample App

    Video Steps 1) First a Panel is added to the form. Then it is docked to the right side edge of the form 2) Then the panel is re-sized. This right side pane will have all the command for the rich text box sample 3) One more panel is added to the left of the command panel. 4) This panel is asked to fill the remaining area. Later a rich text box is placed inside this Panel.
  • Gmail Sender

    Gmailsender have designed to be easily and quickly without entering the email account on Google.
  • TreeView in C#

    This program shows you how to use TreeView control in Windows forms using C# including adding, removing and searching nodes.
  • How to use multiple checked items from the CheckedListBox?

    In this code you can know that how to retrieve the multiple checked items from the CheckedListBox & store into the listbox...
  • Encrypt and Decrypt

    In this blog you will see how to encrypt and decrypt a file.
  • Setting the NotifyIcon Control Properties [Supporting Video]

    This blog shows the properties set for the NotifyIcon control. This is a supporting video called from main article.
  • Adding Context Menu - [Supporting Video]

    This video shows how we configured the context menu that will be accessed by the system tray Icon.
  • ImageList in C#

    In this article, I will discuss how to create an ImageList control and how to use its properties and methods to use in a Windows Forms application.
  • Duplicate values not allowed to move from lisbox

    In this blog we will move items from one list box to other and vice-versa. But if first list box contains some duplicate values it will not allowed to move, rather we will get a message item exits.
  • Editable ListBox in C#

    The attached sample code demonstrates how you can create an editable ListBox control, which will let you edit ListBox items at runtime.
  • The usage of the spring property

    Shows the usage of the Spring propety
  • Border Sides and Border Style property

    Video shows applying the border style
  • Showing some helpful text in the status label

    The video shows how the status label is helpful
  • Setting the status label at runtime

    In the form load the initial status information is displayed.
  • Adding Status bar to the Win Form

    Shows how to add status bar and status labels to windows form
  • Align some tool bar buttons to the right of the tool bar [Video]

    Video shows aligning some of the toolbar buttons to the right side of the toolbar. Like some application displays the help button at the right side.
  • How do I manage toolbar that don’t have space for toolbar buttons? [Video]

    Shows the importance of the ToolStrip layout styles. With layout styles you can see how overflowing buttons are displayed.