C# Windows Forms Controls

Use Windows Forms controls, selecting from the types in the System.Windows.Forms namespace.
Controls. Windows Forms programs have high-quality user experiences. They are native Windows applications. We gain buttons, text boxes, tabs.
A list. Here is a list of controls. With these controls, we assemble programs from prebuilt components. Each page has screenshots and C# code examples.BackgroundWorkerButtonChartCheckBoxCheckedListBoxColorDialogComboBoxContextMenuStripDataGridViewDateTimePickerDomainUpDownDropDownItemsErrorProviderEventLogFileSystemWatcherFlowLayoutPanelFolderBrowserDialogFontDialogGroupBoxHelpProviderImageListLabelLinkLabelListBoxListViewMaskedTextBoxMenuStripMonthCalendarNotifyIconNumericUpDownOpenFileDialogPanelPictureBoxProgressBarPropertyGridRadioButtonRichTextBoxSaveFileDialogSplitContainerStatusStripTabControlTableLayoutPanelTextBoxToolStripContainerToolTipTrackBarTreeViewWebBrowser
DataGridView, details. The DataGridView is an important control. Many programs are built around data. We can enable sorting and scrolling through data.DataGridView: TutorialDataGridView: Add RowsDataGridView: Alternating ColorsDataGridView: Columns
Base types. All controls are derived from the Control type. All forms we develop are derived from the Form type. This helps us handle objects in a unified, consistent way.ControlForm
Properties. There are also many properties you can change on controls and forms in Windows Forms. We cover aspects of properties in this platform.DataSourceFocusedForeColor, BackColorTagText
Events. Windows Forms is event-driven. You can trigger behaviors in your controls when another action happens, such as when the user clicks the mouse.KeyCodePreviewKeyDownTextChanged
Methods. Many methods are available in Windows Forms. Most are clear and need no explanation. But we touch on specific methods in some detail.InitializeComponentMessageBox.ShowMessageBox.Show: DialogResultTextBox.AppendText
Custom. When using Windows Forms, sometimes you cannot use a pre-made or built-in solution to a specific problem. We describe ways you can solve problems using customized solutions.Customized Dialog BoxPosition WindowsSingle Instance
LINQ. We can use LINQ extensions to search controls. Queries and extension methods (like OfType) are helpful. They can reduce code bloat.LINQ: Query Forms
A summary. Web-based user interfaces are now prevalent. But Windows programs hold their place. These programs do not rely on network connectivity. They may be more reliable.
© 2007-2019 Sam Allen. Every person is special and unique. Send bug reports to info@dotnetperls.com.
HomeSearch
Home
Dot Net Perls