Uredi

Deli z drugimi prek


System.Windows.Forms Namespace

Contains classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows operating system.

Classes

AccessibleObject

Provides information that accessibility applications use to adjust an application's user interface (UI) for users with impairments.

AmbientProperties

Provides ambient property values to top-level controls.

Application

Provides static methods and properties to manage an application, such as methods to start and stop an application, to process Windows messages, and properties to get information about an application. This class cannot be inherited.

ApplicationContext

Specifies the contextual information about an application thread.

AutoCompleteStringCollection

Contains a collection of strings to use for the auto-complete feature on certain Windows Forms controls.

AxHost

Wraps ActiveX controls and exposes them as fully featured Windows Forms controls.

AxHost.AxComponentEditor

Provides an editor that uses a modal dialog box to display a property page for an ActiveX control.

AxHost.ClsidAttribute

Specifies the CLSID of an ActiveX control hosted by an AxHost control.

AxHost.ConnectionPointCookie

Connects an ActiveX control to a client that handles the control's events.

AxHost.InvalidActiveXStateException

The exception that is thrown when the ActiveX control is referenced while in an invalid state.

AxHost.State

Encapsulates the persisted state of an ActiveX control.

AxHost.StateConverter

Converts AxHost.State objects from one data type to another.

AxHost.TypeLibraryTimeStampAttribute

Specifies a date and time associated with the type library of an ActiveX control hosted by an AxHost control.

BaseCollection

Provides the base functionality for creating data-related collections in the System.Windows.Forms namespace.

BindableComponent

Base class for components that provide properties that can be data bound with the Windows Forms Designer.

Binding

Represents the simple binding between the property value of an object and the property value of a control.

BindingCompleteEventArgs

Provides data for the BindingComplete event.

BindingContext

Manages the collection of BindingManagerBase objects for any object that inherits from the Control class.

BindingManagerBase

Manages all Binding objects that are bound to the same data source and data member. This class is abstract.

BindingManagerDataErrorEventArgs

Provides data for the DataError event.

BindingNavigator

Represents the navigation and manipulation user interface (UI) for controls on a form that are bound to data.

BindingsCollection

Represents a collection of Binding objects for a control.

BindingSource

Encapsulates the data source for a form.

Button

Represents a Windows button control.

ButtonBase

Implements the basic functionality common to button controls.

ButtonBase.ButtonBaseAccessibleObject

Provides information that accessibility applications use to adjust an application's user interface for users with disabilities.

ButtonRenderer

Provides methods used to render a button control with or without visual styles. This class cannot be inherited.

CacheVirtualItemsEventArgs

Provides data for the CacheVirtualItems event.

CheckBox

Represents a Windows CheckBox.

CheckBox.CheckBoxAccessibleObject

Provides information about the CheckBox control to accessibility client applications.

CheckBoxRenderer

Provides methods used to render a check box control with or without visual styles. This class cannot be inherited.

CheckedListBox

Displays a ListBox in which a check box is displayed to the left of each item.

CheckedListBox.CheckedIndexCollection

Encapsulates the collection of indexes of checked items (including items in an indeterminate state) in a CheckedListBox.

CheckedListBox.CheckedItemCollection

Encapsulates the collection of checked items, including items in an indeterminate state, in a CheckedListBox control.

CheckedListBox.ObjectCollection

Represents the collection of items in a CheckedListBox.

Clipboard

Provides methods to place data on and retrieve data from the system Clipboard. This class cannot be inherited.

ColorDialog

Represents a common dialog box that displays available colors along with controls that enable the user to define custom colors.

ColumnClickEventArgs

Provides data for the ColumnClick event.

ColumnHeader

Displays a single column header in a ListView control.

ColumnHeaderConverter

Provides a type converter to convert ColumnHeader objects from one type to another.

ColumnReorderedEventArgs

Provides data for the ColumnReordered event.

ColumnStyle

Represents the look and feel of a column in a table layout.

ColumnWidthChangedEventArgs

Provides data for the ColumnWidthChanged event.

ColumnWidthChangingEventArgs

Provides data for the ColumnWidthChanging event.

ComboBox

Represents a Windows combo box control.

ComboBox.ChildAccessibleObject

Provides information about the ComboBox control to accessibility client applications.

ComboBox.ObjectCollection

Represents the collection of items in a ComboBox.

ComboBoxRenderer

Provides methods used to render a combo box control with visual styles. This class cannot be inherited.

CommonDialog

Specifies the base class used for displaying dialog boxes on the screen.

ContainerControl

Provides focus-management functionality for controls that can function as a container for other controls.

ContentsResizedEventArgs

Provides data for the ContentsResized event.

ContextMenu

Represents a shortcut menu.

This class is not available in .NET Core 3.1 and later versions. Use ContextMenuStrip instead, which replaces and extends the ContextMenu control.

ContextMenuStrip

Represents a shortcut menu.

Control

Defines the base class for controls, which are components with visual representation.

Control.ControlAccessibleObject

Provides information about a control that can be used by an accessibility application.

Control.ControlCollection

Represents a collection of Control objects.

ControlBindingsCollection

Represents the collection of data bindings for a control.

ControlEventArgs

Provides data for the ControlAdded and ControlRemoved events.

ControlPaint

Provides methods used to paint common Windows controls and their elements. This class cannot be inherited.

ConvertEventArgs

Provides data for the Format and Parse events.

CreateParams

Encapsulates the information needed when creating a control.

CurrencyManager

Manages a list of Binding objects.

Cursor

Represents the image used to paint the mouse pointer.

CursorConverter

Provides a type converter to convert Cursor objects to and from various other representations.

Cursors

Provides a collection of Cursor objects for use by a Windows Forms application.

DataFormats

Provides static, predefined Clipboard format names. Use them to identify the format of data that you store in an IDataObject.

DataFormats.Format

Represents a Clipboard format type.

DataGrid

Displays ADO.NET data in a scrollable grid.

This class is not available in .NET Core 3.1 and later versions. Use the DataGridView control instead, which replaces and extends the DataGrid control.

DataGrid.HitTestInfo

Contains information about a part of the DataGrid at a specified coordinate. This class cannot be inherited.

DataGridBoolColumn

Specifies a column in which each cell contains a check box for representing a Boolean value.

DataGridColumnStyle

Specifies the appearance, text formatting, and behavior of a DataGrid control column. This class is abstract.

DataGridColumnStyle.CompModSwitches

Contains a TraceSwitch that is used by the .NET Framework infrastructure.

DataGridColumnStyle.DataGridColumnHeaderAccessibleObject

Provides an implementation for an object that can be inspected by an accessibility application.

DataGridPreferredColumnWidthTypeConverter

Converts the value of an object to a different data type.

DataGridTableStyle

Represents the table drawn by the DataGrid control at run time.

DataGridTextBox

Represents a TextBox control that is hosted in a DataGridTextBoxColumn.

DataGridTextBoxColumn

Hosts a TextBox control in a cell of a DataGridColumnStyle for editing strings.

DataGridView

Displays data in a customizable grid.

DataGridView.DataGridViewAccessibleObject

Provides information about the DataGridView control to accessibility client applications.

DataGridView.DataGridViewControlCollection

Represents a collection of controls contained on a DataGridView.

DataGridView.DataGridViewTopRowAccessibleObject

Provides information about a row of DataGridViewColumnHeaderCell objects to accessibility client applications.

DataGridView.HitTestInfo

Contains information, such as the row and column indexes, about a specific coordinate pair in the DataGridView control. This class cannot be inherited.

DataGridViewAdvancedBorderStyle

Contains border styles for the cells in a DataGridView control.

DataGridViewAutoSizeColumnModeEventArgs

Provides data for the AutoSizeColumnModeChanged event.

DataGridViewAutoSizeColumnsModeEventArgs

Provides data for the AutoSizeColumnsModeChanged event.

DataGridViewAutoSizeModeEventArgs

Provides data for the DataGridViewAutoSizeRowsModeChanged and RowHeadersWidthSizeModeChanged events.

DataGridViewBand

Represents a linear collection of elements in a DataGridView control.

DataGridViewBindingCompleteEventArgs

Provides data for the DataBindingComplete event.

DataGridViewButtonCell

Displays a button-like user interface (UI) for use in a DataGridView control.

DataGridViewButtonCell.DataGridViewButtonCellAccessibleObject

Provides information about a DataGridViewButtonCell to accessibility client applications.

DataGridViewButtonColumn

Hosts a collection of DataGridViewButtonCell objects.

DataGridViewCell

Represents an individual cell in a DataGridView control.

DataGridViewCell.DataGridViewCellAccessibleObject

Provides information about a DataGridViewCell to accessibility client applications.

DataGridViewCellCancelEventArgs

Provides data for CellBeginEdit and RowValidating events.

DataGridViewCellCollection

Represents a collection of cells in a DataGridViewRow.

DataGridViewCellContextMenuStripNeededEventArgs

Provides data for the CellContextMenuStripNeeded event.

DataGridViewCellErrorTextNeededEventArgs

Provides data for the CellErrorTextNeeded event of a DataGridView control.

DataGridViewCellEventArgs

Provides data for DataGridView events related to cell and row operations.

DataGridViewCellFormattingEventArgs

Provides data for the CellFormatting event of a DataGridView.

DataGridViewCellMouseEventArgs

Provides data for mouse events raised by a DataGridView whenever the mouse is moved within a DataGridViewCell.

DataGridViewCellPaintingEventArgs

Provides data for the CellPainting event.

DataGridViewCellParsingEventArgs

Provides data for the CellParsing event of a DataGridView control.

DataGridViewCellStateChangedEventArgs

Provides data for the CellStateChanged event.

DataGridViewCellStyle

Represents the formatting and style information applied to individual cells within a DataGridView control.

DataGridViewCellStyleContentChangedEventArgs

Provides data for the CellStyleContentChanged event.

DataGridViewCellStyleConverter

Converts DataGridViewCellStyle objects to and from other data types.

DataGridViewCellToolTipTextNeededEventArgs

Provides data for the CellToolTipTextNeeded event.

DataGridViewCellValidatingEventArgs

Provides data for the CellValidating event of a DataGridView control.

DataGridViewCellValueEventArgs

Provides data for the CellValueNeeded and CellValuePushed events of the DataGridView control.

DataGridViewCheckBoxCell

Displays a check box user interface (UI) to use in a DataGridView control.

DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject

Provides information about a DataGridViewCheckBoxCell to accessibility client applications.

DataGridViewCheckBoxColumn

Hosts a collection of DataGridViewCheckBoxCell objects.

DataGridViewColumn

Represents a column in a DataGridView control.

DataGridViewColumnCollection

Represents a collection of DataGridViewColumn objects in a DataGridView control.

DataGridViewColumnDesignTimeVisibleAttribute

Specifies whether a column type is visible in the DataGridView designer. This class cannot be inherited.

DataGridViewColumnDividerDoubleClickEventArgs

Provides data for the ColumnDividerDoubleClick event of a DataGridView.

DataGridViewColumnEventArgs

Provides data for column-related events of a DataGridView.

DataGridViewColumnHeaderCell

Represents a column header in a DataGridView control.

DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject

Provides information about a DataGridViewColumnHeaderCell to accessibility client applications.

DataGridViewColumnStateChangedEventArgs

Provides data for the ColumnStateChanged event.

DataGridViewComboBoxCell

Displays a combo box in a DataGridView control.

DataGridViewComboBoxCell.DataGridViewComboBoxCellAccessibleObject

Represents the accessibility object for the current DataGridViewComboBoxCell object.

DataGridViewComboBoxCell.ObjectCollection

Represents the collection of selection choices in a DataGridViewComboBoxCell.

DataGridViewComboBoxColumn

Represents a column of DataGridViewComboBoxCell objects.

DataGridViewComboBoxEditingControl

Represents the hosted combo box control in a DataGridViewComboBoxCell.

DataGridViewDataErrorEventArgs

Provides data for the DataError event.

DataGridViewEditingControlShowingEventArgs

Provides data for the EditingControlShowing event.

DataGridViewElement

Provides the base class for elements of a DataGridView control.

DataGridViewHeaderCell

Contains functionality common to row header cells and column header cells.

DataGridViewImageCell

Displays a graphic in a DataGridView control.

DataGridViewImageCell.DataGridViewImageCellAccessibleObject

Provides information about a DataGridViewImageCell to accessibility client applications.

DataGridViewImageColumn

Hosts a collection of DataGridViewImageCell objects.

DataGridViewLinkCell

Represents a cell that contains a link.

DataGridViewLinkCell.DataGridViewLinkCellAccessibleObject

Provides information about a DataGridViewLinkCell control to accessibility client applications.

DataGridViewLinkColumn

Represents a column of cells that contain links in a DataGridView control.

DataGridViewRow

Represents a row in a DataGridView control.

DataGridViewRow.DataGridViewRowAccessibleObject

Provides information about a DataGridViewRow to accessibility client applications.

DataGridViewRowCancelEventArgs

Provides data for the UserDeletingRow event of a DataGridView.

DataGridViewRowCollection

A collection of DataGridViewRow objects.

DataGridViewRowContextMenuStripNeededEventArgs

Provides data for the RowContextMenuStripNeeded event.

DataGridViewRowDividerDoubleClickEventArgs

Provides data for the RowDividerDoubleClick event of a DataGridView.

DataGridViewRowErrorTextNeededEventArgs

Provides data for the RowErrorTextNeeded event of a DataGridView control.

DataGridViewRowEventArgs

Provides data for row-related DataGridView events.

DataGridViewRowHeaderCell

Represents a row header of a DataGridView control.

DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject

Provides information about a DataGridViewRowHeaderCell to accessibility client applications.

DataGridViewRowHeightInfoNeededEventArgs

Provides data for the RowHeightInfoNeeded event of a DataGridView.

DataGridViewRowHeightInfoPushedEventArgs

Provides data for the RowHeightInfoPushed event of a DataGridView.

DataGridViewRowPostPaintEventArgs

Provides data for the RowPostPaint event.

DataGridViewRowPrePaintEventArgs

Provides data for the RowPrePaint event.

DataGridViewRowsAddedEventArgs

Provides data for the RowsAdded event.

DataGridViewRowsRemovedEventArgs

Provides data for the RowsRemoved event.

DataGridViewRowStateChangedEventArgs

Provides data for the RowStateChanged event of a DataGridView.

DataGridViewSelectedCellCollection

Represents a collection of cells that are selected in a DataGridView.

DataGridViewSelectedColumnCollection

Represents a collection of DataGridViewColumn objects that are selected in a DataGridView.

DataGridViewSelectedRowCollection

Represents a collection of DataGridViewRow objects that are selected in a DataGridView.

DataGridViewSortCompareEventArgs

Provides data for the SortCompare event.

DataGridViewTextBoxCell

Displays editable text information in a DataGridView control.

DataGridViewTextBoxCell.DataGridViewTextBoxCellAccessibleObject

Represents the accessibility object for the current DataGridViewTextBoxCell object.

DataGridViewTextBoxColumn

Hosts a collection of DataGridViewTextBoxCell cells.

DataGridViewTextBoxEditingControl

Represents a text box control that can be hosted in a DataGridViewTextBoxCell.

DataGridViewTopLeftHeaderCell

Represents the cell in the top left corner of the DataGridView that sits above the row headers and to the left of the column headers.

DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellAccessibleObject

Provides information about a DataGridViewTopLeftHeaderCell to accessibility client applications.

DataObject

Implements a basic data transfer mechanism.

DateBoldEventArgs

Provides data for events that are internal to the MonthCalendar control.

DateRangeEventArgs

Provides data for the DateChanged or DateSelected events of the MonthCalendar control.

DateTimePicker

Represents a Windows control that allows the user to select a date and a time and to display the date and time with a specified format.

DateTimePicker.DateTimePickerAccessibleObject

Provides information about the DateTimePicker control to accessibility client applications.

DockingAttribute

Specifies the default docking behavior for a control.

DomainUpDown

Represents a Windows spin box (also known as an up-down control) that displays string values.

DomainUpDown.DomainItemAccessibleObject

Provides information about the items in the DomainUpDown control to accessibility client applications.

DomainUpDown.DomainUpDownAccessibleObject

Provides information about the DomainUpDown control to accessibility client applications.

DomainUpDown.DomainUpDownItemCollection

Encapsulates a collection of objects for use by the DomainUpDown class.

DpiChangedEventArgs

Provides data for the DPIChanged events of a form or control.

DragEventArgs

Provides data for the DragDrop, DragEnter, or DragOver event.

DrawItemEventArgs

Provides data for the DrawItem event.

DrawListViewColumnHeaderEventArgs

Provides data for the DrawColumnHeader event.

DrawListViewItemEventArgs

Provides data for the DrawItem event.

DrawListViewSubItemEventArgs

Provides data for the DrawSubItem event.

DrawToolTipEventArgs

Provides data for the Draw event.

DrawTreeNodeEventArgs

Provides data for the DrawNode event.

ErrorProvider

Provides a user interface for indicating that a control on a form has an error associated with it.

FeatureSupport

Provides static methods for retrieving feature information from the current system.

FileDialog

Displays a dialog box from which the user can select a file.

FileDialogCustomPlace

Represents an entry in a FileDialog custom place collection for Windows Vista.

FileDialogCustomPlacesCollection

Represents a collection of Windows Vista custom places for the FileDialog class.

FlatButtonAppearance

Provides properties that specify the appearance of Button controls whose FlatStyle is Flat.

FlowLayoutPanel

Represents a panel that dynamically lays out its contents horizontally or vertically.

FlowLayoutSettings

Collects the characteristics associated with flow layouts.

FolderBrowserDialog

Prompts the user to select a folder. This class cannot be inherited.

FontDialog

Prompts the user to choose a font from among those installed on the local computer.

Form

Represents a window or dialog box that makes up an application's user interface.

Form.ControlCollection

Represents a collection of controls on the form.

FormClosedEventArgs

Provides data for the FormClosed event.

FormClosingEventArgs

Provides data for the FormClosing event.

FormCollection

Represents a collection of Form objects.

GiveFeedbackEventArgs

Provides data for the GiveFeedback event, which occurs during a drag operation.

GridColumnStylesCollection

Represents a collection of DataGridColumnStyle objects in the DataGrid control.

GridItem

Implements one row in a PropertyGrid.

GridItemCollection

Contains a collection of GridItem objects.

GridTablesFactory

Provides the CreateGridTables(DataGridTableStyle, Object, String, BindingContext) method.

GridTableStylesCollection

Represents a collection of DataGridTableStyle objects in the DataGrid control.

GroupBox

Represents a Windows control that displays a frame around a group of controls with an optional caption.

GroupBoxRenderer

Provides methods used to render a group box control with or without visual styles. This class cannot be inherited.

HandledMouseEventArgs

Allows a custom control to prevent the MouseWheel event from being sent to its parent container.

Help

Encapsulates the HTML Help 1.0 engine.

HelpEventArgs

Provides data for the HelpRequested event.

HelpProvider

Provides pop-up or online Help for controls.

HScrollBar

Represents a standard Windows horizontal scroll bar.

HScrollProperties

Provides basic properties for the HScrollBar.

HtmlDocument

Provides top-level programmatic access to an HTML document hosted by the WebBrowser control.

HtmlElement

Represents an HTML element inside of a Web page.

HtmlElementCollection

Defines a collection of HtmlElement objects.

HtmlElementErrorEventArgs

Provides data for the Error event.

HtmlElementEventArgs

Provides data for the events defined on HtmlDocument and HtmlElement.

HtmlHistory

Manages the list of documents and Web sites the user has visited within the current session.

HtmlWindow

Represents the logical window that contains one or more instances of HtmlDocument.

HtmlWindowCollection

Represents the windows contained within another HtmlWindow.

ImageIndexConverter

Provides a type converter to convert data for an image index to and from a string.

ImageKeyConverter

Provides a type converter to convert data for an image key to and from another data type.

ImageList

Provides methods to manage a collection of Image objects. This class cannot be inherited.

ImageList.ImageCollection

Encapsulates the collection of Image objects in an ImageList.

ImageListStreamer

Provides the data portion of an ImageList.

ImeContext

Contains static methods that interact directly with the IME API.

InputLanguage

Provides methods and fields to manage the input language. This class cannot be inherited.

InputLanguageChangedEventArgs

Provides data for the InputLanguageChanged event.

InputLanguageChangingEventArgs

Provides data for the InputLanguageChanging event.

InputLanguageCollection

Stores InputLanguage objects.

InvalidateEventArgs

Provides data for the Invalidated event.

ItemChangedEventArgs

Provides data for the ItemChanged event.

ItemCheckedEventArgs

Provides data for the ItemChecked event of the ListView control.

ItemCheckEventArgs

Provides data for the ItemCheck event of the CheckedListBox and ListView controls.

ItemDragEventArgs

Provides data for the ItemDrag event of the ListView and TreeView controls.

KeyEventArgs

Provides data for the KeyDown or KeyUp event.

KeyPressEventArgs

Provides data for the KeyPress event.

KeysConverter

Provides a TypeConverter to convert Keys objects to and from other representations.

Label

Represents a standard Windows label.

LabelEditEventArgs

Provides data for the BeforeLabelEdit and AfterLabelEdit events.

LayoutEventArgs

Provides data for the Layout event. This class cannot be inherited.

LayoutSettings

Provides a base class for collecting layout scheme characteristics.

LinkArea.LinkAreaConverter

Provides a type converter to convert LinkArea.LinkAreaConverter objects to and from various other representations.

LinkClickedEventArgs

Provides data for the LinkClicked event.

LinkConverter

Provides a type converter for LinkLabel.Link objects.

LinkLabel

Represents a Windows label control that can display hyperlinks.

LinkLabel.Link

Represents a link within a LinkLabel control.

LinkLabel.LinkCollection

Represents the collection of links within a LinkLabel control.

LinkLabelLinkClickedEventArgs

Provides data for the LinkClicked event.

ListBindingConverter

Provides a type converter to convert Binding objects to and from various other representations.

ListBindingHelper

Provides functionality to discover a bindable list and the properties of the items contained in the list when they differ from the public properties of the object to which they bind.

ListBox

Represents a Windows control to display a list of items.

ListBox.IntegerCollection

Represents a collection of integers in a ListBox.

ListBox.ObjectCollection

Represents the collection of items in a ListBox.

ListBox.SelectedIndexCollection

Represents the collection containing the indexes to the selected items in a ListBox.

ListBox.SelectedObjectCollection

Represents the collection of selected items in the ListBox.

ListControl

Provides a common implementation of members for the ListBox and ComboBox classes.

ListControlConvertEventArgs

Provides data for the Format event.

ListView

Represents a Windows list view control, which displays a collection of items that can be displayed using one of four different views.

ListView.CheckedIndexCollection

Represents the collection containing the indexes to the checked items in a list view control.

ListView.CheckedListViewItemCollection

Represents the collection of checked items in a list view control.

ListView.ColumnHeaderCollection

Represents the collection of column headers in a ListView control.

ListView.ListViewItemCollection

Represents the collection of items in a ListView control or assigned to a ListViewGroup.

ListView.SelectedIndexCollection

Represents the collection that contains the indexes to the selected items in a ListView control.

ListView.SelectedListViewItemCollection

Represents the collection of selected items in a list view control.

ListViewGroup

Represents a group of items displayed within a ListView control.

ListViewGroupCollection

Represents the collection of groups within a ListView control.

ListViewGroupEventArgs

Provides data for the OnGroupCollapsedStateChanged(ListViewGroupEventArgs) and OnGroupTaskLinkClick(ListViewGroupEventArgs) event.

ListViewHitTestInfo

Contains information about an area of a ListView control or a ListViewItem.

ListViewInsertionMark

Used to indicate the expected drop location when an item is dragged to a new position in a ListView control. This functionality is available only on Windows XP and later.

ListViewItem

Represents an item in a ListView control.

ListViewItem.ListViewSubItem

Represents a subitem of a ListViewItem.

ListViewItem.ListViewSubItemCollection

Represents a collection of ListViewItem.ListViewSubItem objects stored in a ListViewItem.

ListViewItemConverter

Provides a type converter to convert ListViewItem objects to and from various other representations.

ListViewItemMouseHoverEventArgs

Provides data for the ItemMouseHover event.

ListViewItemSelectionChangedEventArgs

Provides data for the ItemSelectionChanged event.

ListViewItemStateImageIndexConverter

Provides a type converter to convert state image index values from one data type to another.

ListViewVirtualItemsSelectionRangeChangedEventArgs

Provides data for the VirtualItemsSelectionRangeChanged event.

MainMenu

Represents the menu structure of a form.

This class is not available in .NET Core 3.1 and later versions. Use MenuStrip instead, which replaces and extends the MainMenu control.

MaskedTextBox

Uses a mask to distinguish between proper and improper user input.

MaskInputRejectedEventArgs

Provides data for the MaskInputRejected event.

MdiClient

Represents the container for multiple-document interface (MDI) child forms. This class cannot be inherited.

MdiClient.ControlCollection

Contains a collection of MdiClient controls.

MeasureItemEventArgs

Provides data for the MeasureItem event of the ListBox, ComboBox, CheckedListBox, and MenuItem controls.

Menu

Represents the base functionality for all menus.

This class is not available in .NET Core 3.1 and later versions. Use ToolStripDropDown and ToolStripDropDownMenu instead, which replace and extend the Menu control.

Menu.MenuItemCollection

Represents a collection of MenuItem objects.

MenuItem

Represents an individual item that is displayed within a MainMenu or ContextMenu.

This class is not available in .NET Core 3.1 and later versions. Use ToolStripMenuItem instead, which replaces the MenuItem control.

MenuStrip

Provides a menu system for a form.

MessageBox

Displays a message window, also known as a dialog box, which presents a message to the user. It is a modal window, blocking other actions in the application until the user closes it. A MessageBox can contain text, buttons, and symbols that inform and instruct the user.

MonthCalendar

Represents a Windows control that enables the user to select a date using a visual monthly calendar display.

MonthCalendar.HitTestInfo

Contains information about an area of a MonthCalendar control. This class cannot be inherited.

MouseEventArgs

Provides data for the MouseUp, MouseDown, and MouseMove events.

NativeWindow

Provides a low-level encapsulation of a window handle and a window procedure.

NavigateEventArgs

Provides data for the Navigate event.

NodeLabelEditEventArgs

Provides data for the BeforeLabelEdit and AfterLabelEdit events.

NotifyIcon

Specifies a component that creates an icon in the notification area. This class cannot be inherited.

NumericUpDown

Represents a Windows spin box (also known as an up-down control) that displays numeric values.

NumericUpDownAcceleration

Provides information specifying how acceleration should be performed on a spin box (also known as an up-down control) when the up or down button is pressed for specified time period.

NumericUpDownAccelerationCollection

Represents a sorted collection of NumericUpDownAcceleration objects in the NumericUpDown control.

OpacityConverter

Provides a type converter to convert opacity values to and from a string.

OpenFileDialog

Displays a standard dialog box that prompts the user to open a file. This class cannot be inherited.

OSFeature

Provides operating-system specific feature queries.

OwnerDrawPropertyBag

Contains values of properties that a component might need only occasionally.

PaddingConverter

Provides a type converter to convert Padding values to and from various other representations.

PageSetupDialog

Enables users to change page-related print settings, including margins and paper orientation. This class cannot be inherited.

PaintEventArgs

Provides data for the Paint event.

Panel

Used to group collections of controls.

PictureBox

Represents a Windows picture box control for displaying an image.

PopupEventArgs

Provides data for the Popup event.

PowerStatus

Indicates current system power status information.

PreviewKeyDownEventArgs

Provides data for the PreviewKeyDown event.

PrintControllerWithStatusDialog

Controls how a document is printed from a Windows Forms application.

PrintDialog

Lets users select a printer and choose which sections of the document to print from a Windows Forms application.

PrintPreviewControl

Represents the raw preview part of print previewing from a Windows Forms application, without any dialog boxes or buttons. Most PrintPreviewControl objects are found on PrintPreviewDialog objects, but they do not have to be.

PrintPreviewDialog

Represents a dialog box form that contains a PrintPreviewControl for printing from a Windows Forms application.

ProfessionalColors

Provides Color structures that are colors of a Windows display element. This class cannot be inherited.

ProfessionalColorTable

Provides colors used for Microsoft Office display elements.

ProgressBar

Represents a Windows progress bar control.

ProgressBarRenderer

Provides methods used to render a progress bar control with visual styles. This class cannot be inherited.

PropertyGrid

Provides a user interface for browsing the properties of an object.

PropertyGrid.PropertyTabCollection

Contains a collection of PropertyTab objects.

PropertyManager

Maintains a Binding between an object's property and a data-bound control property.

PropertyTabChangedEventArgs

Provides data for the PropertyTabChanged event of a PropertyGrid.

PropertyValueChangedEventArgs

Provides data for the PropertyValueChanged event of a PropertyGrid.

QueryAccessibilityHelpEventArgs

Provides data for the QueryAccessibilityHelp event.

QueryContinueDragEventArgs

Provides data for the QueryContinueDrag event.

QuestionEventArgs

Provides data for events that need a true or false answer to a question.

RadioButton

Enables the user to select a single option from a group of choices when paired with other RadioButton controls.

RadioButton.RadioButtonAccessibleObject

Provides information about the RadioButton control to accessibility client applications.

RadioButtonRenderer

Provides methods used to render an option button control (also known as a radio button) with or without visual styles. This class cannot be inherited.

RelatedImageListAttribute

Indicates which ImageList a property is related to.

RetrieveVirtualItemEventArgs

Provides data for the RetrieveVirtualItem event.

RichTextBox

Represents a Windows rich text box control.

RowStyle

Represents the look and feel of a row in a table layout.

SaveFileDialog

Prompts the user to select a location for saving a file. This class cannot be inherited.

Screen

Represents a display device or multiple display devices on a single system.

ScrollableControl

Defines a base class for controls that support auto-scrolling behavior.

ScrollableControl.DockPaddingEdges

Determines the border padding for docked controls.

ScrollableControl.DockPaddingEdgesConverter

A TypeConverter for the ScrollableControl.DockPaddingEdges class.

ScrollBar

Implements the basic functionality of a scroll bar control.

ScrollBarRenderer

Provides methods used to render a scroll bar control with visual styles. This class cannot be inherited.

ScrollEventArgs

Provides data for the Scroll event.

ScrollProperties

Encapsulates properties related to scrolling.

SearchForVirtualItemEventArgs

Provides data for the SearchForVirtualItem event.

SelectedGridItemChangedEventArgs

Provides data for the SelectedGridItemChanged event of the PropertyGrid control.

SelectionRange

Represents a date selection range in a month calendar control.

SelectionRangeConverter

Provides a type converter to convert SelectionRange objects to and from various other types.

SendKeys

Provides methods for sending keystrokes to an application.

SplitContainer

Represents a control consisting of a movable bar that divides a container's display area into two resizable panels.

Splitter

Represents a splitter control that enables the user to resize docked controls. Splitter has been replaced by SplitContainer and is provided only for compatibility with previous versions.

SplitterCancelEventArgs

Provides data for splitter events.

SplitterEventArgs

Provides data for SplitterMoving and the SplitterMoved events.

SplitterPanel

Creates a panel that is associated with a SplitContainer.

StatusBar

Represents a Windows status bar control.

This class is not available in .NET 5 and later versions. Use the StatusStrip control instead, which replaces and extends the StatusBar control.

StatusBar.StatusBarPanelCollection

Represents the collection of panels in a StatusBar control.

StatusBarDrawItemEventArgs

Provides data for the DrawItem event.

StatusBarPanel

Represents a panel in a StatusBar control.

This class is not available in .NET 5 and later versions. Use the ToolStripStatusLabel control instead, which replaces and extends the StatusBarPanel control.

StatusBarPanelClickEventArgs

Provides data for the PanelClick event.

StatusStrip

Represents a Windows status bar control.

SystemInformation

Provides information about the current system environment.

TabControl

Manages a related set of tab pages.

TabControl.ControlCollection

Contains a collection of Control objects.

TabControl.TabPageCollection

Contains a collection of TabPage objects.

TabControlCancelEventArgs

Provides data for the Selecting and Deselecting events of a TabControl control.

TabControlEventArgs

Provides data for the Selected and Deselected events of a TabControl control.

TableLayoutCellPaintEventArgs

Provides data for the CellPaint event.

TableLayoutColumnStyleCollection

A collection that stores ColumnStyle objects.

TableLayoutControlCollection

Represents a collection of child controls in a table layout container.

TableLayoutPanel

Represents a panel that dynamically lays out its contents in a grid composed of rows and columns.

TableLayoutRowStyleCollection

A collection that stores RowStyle objects.

TableLayoutSettings

Collects the characteristics associated with table layouts.

TableLayoutStyle

Implements the basic functionality that represents the appearance and behavior of a table layout.

TableLayoutStyleCollection

Implements the basic functionality for a collection of table layout styles.

TabPage

Represents a single tab page in a TabControl.

TabPage.TabPageControlCollection

Contains the collection of controls that the TabPage uses.

TabRenderer

Provides methods used to render a tab control with visual styles. This class cannot be inherited.

TaskDialog

A task dialog allows to display information and get simple input from the user. It is similar to a MessageBox (in that it is formatted by the operating system) but provides a lot more features.

TaskDialogButton

Represents a button control of a task dialog.

TaskDialogButtonCollection

Represents a collection of TaskDialogButton objects.

TaskDialogCommandLinkButton

Represents a command link button control of a task dialog.

TaskDialogControl

Represents a control of a task dialog.

TaskDialogExpander

Represents an expander button and the associated expanded area of a task dialog.

TaskDialogFootnote

Represents the footnote area of a task dialog.

TaskDialogIcon

Represents an icon that can be shown in the main area of a task dialog (by setting the Icon property) or in the footnote of a task dialog (by setting the Icon property).

TaskDialogLinkClickedEventArgs

Provides data for the LinkClicked event.

TaskDialogPage

Represents a page of content of a task dialog.

TaskDialogProgressBar

Represents a progress bar control of a task dialog.

TaskDialogRadioButton

Represents a radio button control of a task dialog.

TaskDialogRadioButtonCollection

Represents a collection of TaskDialogRadioButton objects.

TaskDialogVerificationCheckBox

Represents a verification checkbox control of a task dialog.

TextBox

Represents a Windows text box control.

TextBoxBase

Implements the basic functionality required by text controls.

TextBoxRenderer

Provides methods used to render a text box control with visual styles. This class cannot be inherited.

TextRenderer

Provides methods used to measure and render text. This class cannot be inherited.

ThreadExceptionDialog

Implements a dialog box that is displayed when an unhandled exception occurs in a thread.

Timer

Implements a timer that raises an event at user-defined intervals. This timer is optimized for use in Windows Forms applications and must be used in a window.

ToolBar

Represents a Windows toolbar.

This class is not available in .NET Core 3.1 and later versions. Use ToolStrip instead, which replaces and extends the ToolBar control.

ToolBar.ToolBarButtonCollection

Encapsulates a collection of ToolBarButton controls for use by the ToolBar class.

ToolBarButton

Represents a Windows toolbar button.

This class is not available in .NET Core 3.1 and later versions. Use ToolStripButton instead, which replaces and extends the ToolBarButton control.

ToolBarButtonClickEventArgs

Provides data for the ButtonClick event.

ToolStrip

Provides a container for Windows toolbar objects.

ToolStrip.ToolStripAccessibleObject

Provides information that accessibility applications use to adjust the user interface of a ToolStrip for users with impairments.

ToolStripArrowRenderEventArgs

Provides data for the RenderArrow event.

ToolStripButton

Represents a selectable ToolStripItem that can contain text and images.

ToolStripComboBox

Represents a ToolStripComboBox that is properly rendered in a ToolStrip.

ToolStripContainer

Provides panels on each side of the form and a central panel that can hold one or more controls.

ToolStripContentPanel

Represents the center panel of a ToolStripContainer control.

ToolStripContentPanelRenderEventArgs

Provides data for the RendererChanged event.

ToolStripControlHost

Hosts custom controls or Windows Forms controls.

ToolStripControlHost.ToolStripHostedControlAccessibleObject

Represents the accessible object control host responsible for accessible navigation within the ToolStrip standard items and hosted controls like TextBox, ComboBox, ProgressBar, etc.

ToolStripDropDown

Represents a control that allows the user to select a single item from a list that's displayed when the user clicks a ToolStripDropDownButton.

ToolStripDropDown.ToolStripDropDownAccessibleObject

Provides information about the ToolStripDropDown control to accessibility client applications.

ToolStripDropDownButton

Represents a control that when clicked displays an associated ToolStripDropDown from which the user can select a single item.

ToolStripDropDownClosedEventArgs

Provides data for the Closed event.

ToolStripDropDownClosingEventArgs

Provides data for the Closing event.

ToolStripDropDownItem

Provides basic functionality for controls that display a ToolStripDropDown when a ToolStripDropDownButton, ToolStripMenuItem, or ToolStripSplitButton control is clicked.

ToolStripDropDownItemAccessibleObject

Provides information that accessibility applications use to adjust the user interface of a ToolStripDropDown for users with impairments.

ToolStripDropDownMenu

Provides basic functionality for the ContextMenuStrip control.

ToolStripGripRenderEventArgs

Provides data for the RenderGrip event.

ToolStripItem

Represents the abstract base class that manages events and layout for all the elements that a ToolStrip or ToolStripDropDown can contain.

ToolStripItem.ToolStripItemAccessibleObject

Provides information that accessibility applications use to adjust the user interface of a ToolStripItem for users with impairments.

ToolStripItemClickedEventArgs

Provides data for the ItemClicked event.

ToolStripItemCollection

Represents a collection of ToolStripItem objects.

ToolStripItemEventArgs

Provides data for ToolStripItem events.

ToolStripItemImageRenderEventArgs

Provides data for the RenderItemImage event.

ToolStripItemRenderEventArgs

Provides data for the events that render the background of objects derived from ToolStripItem in the ToolStripRenderer class.

ToolStripItemTextRenderEventArgs

Provides data for the RenderItemText event.

ToolStripLabel

Represents a nonselectable ToolStripItem that renders text and images and can display hyperlinks.

ToolStripManager

Controls ToolStrip rendering and rafting, and the merging of MenuStrip, ToolStripDropDownMenu, and ToolStripMenuItem objects. This class cannot be inherited.

ToolStripMenuItem

Represents a selectable option displayed on a MenuStrip or ContextMenuStrip.

ToolStripOverflow

Manages the overflow behavior of a ToolStrip.

ToolStripOverflowButton

Hosts a ToolStripDropDown that displays items that overflow the ToolStrip.

ToolStripPanel

Creates a container within which other controls can share horizontal or vertical space.

ToolStripPanel.ToolStripPanelRowCollection

Represents all the ToolStripPanelRow objects in a ToolStripPanel.

ToolStripPanelRenderEventArgs

Provides data for ToolStripPanel drawing.

ToolStripPanelRow

Represents a row of a ToolStripPanel that can contain controls.

ToolStripProfessionalRenderer

Handles the painting functionality for ToolStrip objects, applying a custom palette and a streamlined style.

ToolStripProgressBar

Represents a Windows progress bar control contained in a StatusStrip.

ToolStripRenderer

Handles the painting functionality for ToolStrip objects.

ToolStripRenderEventArgs

Provides data for the OnRenderImageMargin(ToolStripRenderEventArgs), OnRenderToolStripBorder(ToolStripRenderEventArgs), and OnRenderToolStripBackground(ToolStripRenderEventArgs) methods.

ToolStripSeparator

Represents a line used to group items of a ToolStrip or the drop-down items of a MenuStrip or ContextMenuStrip or other ToolStripDropDown control.

ToolStripSeparatorRenderEventArgs

Provides data for the RenderGrip event.

ToolStripSplitButton

Represents a combination of a standard button on the left and a drop-down button on the right, or the other way around if the value of RightToLeft is Yes.

ToolStripSplitButton.ToolStripSplitButtonAccessibleObject

Provides information that accessibility applications use to adjust the user interface of a ToolStripSplitButton for users with impairments.

ToolStripStatusLabel

Represents a panel in a StatusStrip control.

ToolStripSystemRenderer

Handles the painting functionality for ToolStrip objects, using system colors and a flat visual style.

ToolStripTextBox

Represents a text box in a ToolStrip that allows the user to enter text.

ToolTip

Represents a small rectangular pop-up window that displays a brief description of a control's purpose when the user rests the pointer on the control.

TrackBar

Represents a standard Windows track bar.

TrackBarRenderer

Provides methods used to render a track bar control with visual styles. This class cannot be inherited.

TreeNode

Represents a node of a TreeView.

TreeNodeCollection

Represents a collection of TreeNode objects.

TreeNodeConverter

Provides a type converter to convert TreeNode objects to and from various other representations.

TreeNodeMouseClickEventArgs

Provides data for the NodeMouseClick and NodeMouseDoubleClick events.

TreeNodeMouseHoverEventArgs

Provides data for the NodeMouseHover event.

TreeView

Displays a hierarchical collection of labeled items, each represented by a TreeNode.

TreeViewCancelEventArgs

Provides data for the BeforeCheck, BeforeCollapse, BeforeExpand, and BeforeSelect events of a TreeView control.

TreeViewEventArgs

Provides data for the AfterCheck, AfterCollapse, AfterExpand, or AfterSelect events of a TreeView control.

TreeViewHitTestInfo

Contains information about an area of a TreeView control or a TreeNode.

TreeViewImageIndexConverter

Provides a type converter to convert data for an image index to and from one data type to another for use by the TreeView control.

TreeViewImageKeyConverter

Provides a type converter to convert data for an image key to and from another data type.

TypeValidationEventArgs

Provides data for the TypeValidationCompleted event.

UICuesEventArgs

Provides data for the ChangeUICues event.

UpDownBase

Implements the basic functionality required by a spin box (also known as an up-down control).

UpDownEventArgs

Provides data for controls that derive from the UpDownBase control.

UserControl

Provides an empty control that can be used to create other controls.

VScrollBar

Represents a standard Windows vertical scroll bar.

VScrollProperties

Provides basic properties for the VScrollBar class.

WebBrowser

Enables a user to navigate Web pages inside a form.

WebBrowser.WebBrowserSite

Represents the host window of a WebBrowser control.

WebBrowserBase

Provides a wrapper for a generic ActiveX control for use as a base class by the WebBrowser control.

WebBrowserDocumentCompletedEventArgs

Provides data for the DocumentCompleted event.

WebBrowserNavigatedEventArgs

Provides data for the Navigated event.

WebBrowserNavigatingEventArgs

Provides data for the Navigating event.

WebBrowserProgressChangedEventArgs

Provides data for the ProgressChanged event.

WebBrowserSiteBase

Implements the interfaces of an ActiveX site for use as a base class by the WebBrowser.WebBrowserSite class.

WindowsFormsSection

Defines a new ConfigurationSection for parsing application settings. This class cannot be inherited.

WindowsFormsSynchronizationContext

Provides a synchronization context for the Windows Forms application model.

Structs

BindingMemberInfo

Contains information that enables a Binding to resolve a data binding to either the property of an object or the property of the current object in a list of objects.

DataGridCell

Identifies a cell in the grid.

ImeModeConversion

Helper class that provides information about the IME conversion mode.

LinkArea

Represents an area within a LinkLabel control that represents a hyperlink within the control.

Message

Implements a Windows message.

Padding

Represents padding or margin information associated with a user interface (UI) element.

TableLayoutPanelCellPosition

Represents a cell in a TableLayoutPanel.

Interfaces

IBindableComponent

Enables a non-control component to emulate the data-binding behavior of a Windows Forms control.

IButtonControl

Allows a control to act like a button on a form.

ICommandExecutor

Defines a method that executes a certain action on the type that implements this interface.

IComponentEditorPageSite

The site for a ComponentEditorPage.

IContainerControl

Provides the functionality for a control to act as a parent for other controls.

ICurrencyManagerProvider

Provides custom binding management for components.

IDataGridColumnStyleEditingNotificationService

Provides an editing notification interface.

IDataGridEditingService

Represents methods that process editing requests.

IDataGridViewEditingCell

Defines common functionality for a cell that allows the manipulation of its value.

IDataGridViewEditingControl

Defines common functionality for controls that are hosted within cells of a DataGridView.

IDataObject

Provides a format-independent mechanism for transferring data.

IDropTarget

Defines mouse events.

IFeatureSupport

Specifies a standard interface for retrieving feature information from the current system.

IFileReaderService

Defines a method that opens a file from the current directory.

IMessageFilter

Defines a message filter interface.

IWin32Window

Provides an interface to expose Win32 HWND handles.

IWindowTarget

Defines the communication layer between a control and the Windows API.

Enums

AccessibleEvents

Specifies events that are reported by accessible applications.

AccessibleNavigation

Specifies values for navigating among accessible objects.

AccessibleRole

Specifies values representing possible roles for an accessible object.

AccessibleSelection

Specifies how an accessible object is selected or receives focus.

AccessibleStates

Specifies values representing possible states for an accessible object.

AnchorStyles

Specifies how a control anchors to the edges of its container.

Appearance

Specifies the appearance of a control.

ArrangeDirection

Specifies the direction in which the system arranges minimized windows.

ArrangeStartingPosition

Specifies the starting position that the system uses to arrange minimized windows.

ArrowDirection

Specifies the direction to move when getting items with the GetNextItem(ToolStripItem, ArrowDirection) method.

AutoCompleteMode

Specifies the mode for the automatic completion feature used in the ComboBox and TextBox controls.

AutoCompleteSource

Specifies the source for ComboBox and TextBox automatic completion functionality.

AutoScaleMode

Specifies the different types of automatic scaling modes supported by Windows Forms.

AutoSizeMode

Specifies how a control will behave when its AutoSize property is enabled.

AutoValidate

Determines how a control validates its data when it loses user input focus.

AxHost.ActiveXInvokeKind

Specifies the type of member that referenced the ActiveX control while it was in an invalid state.

BatteryChargeStatus

Defines identifiers that indicate the current battery charge level or charging state information.

BindingCompleteContext

Specifies the direction of the binding operation.

BindingCompleteState

Indicates the result of a completed binding operation.

BootMode

Specifies the boot mode in which the system was started.

Border3DSide

Specifies the sides of a rectangle to apply a three-dimensional border to.

Border3DStyle

Specifies the style of a three-dimensional border.

BorderStyle

Specifies the border style for a control.

BoundsSpecified

Specifies the bounds of the control to use when defining a control's size and position.

ButtonBorderStyle

Specifies the border style for a button control.

ButtonState

Specifies the appearance of a button.

CaptionButton

Specifies the type of caption button to display.

CharacterCasing

Specifies the case of characters in a TextBox control.

CheckState

Specifies the state of a control, such as a check box, that can be checked, unchecked, or set to an indeterminate state.

CloseReason

Specifies the reason that a form was closed.

ColorDepth

Specifies the number of colors used to display an image in an ImageList control.

ColumnHeaderAutoResizeStyle

Specifies how a column contained in a ListView should be resized.

ColumnHeaderStyle

Specifies the styles of the column headers in a ListView control.

ComboBoxStyle

Specifies the ComboBox style.

ControlStyles

Specifies the style and behavior of a control.

ControlUpdateMode

Determines when changes to a data source value get propagated to the corresponding data-bound control property.

DataGrid.HitTestType

Specifies the part of the DataGrid control the user has clicked.

DataGridLineStyle

Specifies the style of gridlines in a DataGrid.

DataGridParentRowsLabelStyle

Specifies how the parent row labels of a DataGrid control are displayed.

DataGridViewAdvancedCellBorderStyle

Specifies the border styles that can be applied to the cells of a DataGridView control.

DataGridViewAutoSizeColumnMode

Defines values for specifying how the width of a column is adjusted.

DataGridViewAutoSizeColumnsMode

Defines values for specifying how the widths of columns are adjusted.

DataGridViewAutoSizeRowMode

Defines values for specifying how the height of a row is adjusted.

DataGridViewAutoSizeRowsMode

Defines values for specifying how the heights of rows are adjusted.

DataGridViewCellBorderStyle

Specifies the border styles that can be applied to the cells of a DataGridView control.

DataGridViewCellStyleScopes

Specifies the DataGridView entity that owns the cell style that was changed.

DataGridViewClipboardCopyMode

Defines constants that indicate whether content is copied from a DataGridView control to the Clipboard.

DataGridViewColumnHeadersHeightSizeMode

Defines values for specifying how the height of the column headers is adjusted.

DataGridViewColumnSortMode

Defines how a DataGridView column can be sorted by the user.

DataGridViewComboBoxDisplayStyle

Defines constants that indicate how a DataGridViewComboBoxCell is displayed.

DataGridViewContentAlignment

Defines constants that indicate the alignment of content within a DataGridView cell.

DataGridViewDataErrorContexts

Represents the state of a data-bound DataGridView control when a data error occurred.

DataGridViewEditMode

Specifies how a user starts cell editing in the DataGridView control.

DataGridViewElementStates

Specifies the user interface (UI) state of a element within a DataGridView control.

DataGridViewHeaderBorderStyle

Specifies the border style that can be applied to the ColumnHeadersBorderStyle and RowHeadersBorderStyle properties of a DataGridView control.

DataGridViewHitTestType

Specifies a location in a DataGridView control.

DataGridViewImageCellLayout

Specifies the layout for an image contained in a DataGridViewCell.

DataGridViewPaintParts

Defines values for specifying the parts of a DataGridViewCell that are to be painted.

DataGridViewRowHeadersWidthSizeMode

Defines values for specifying how the row header width is adjusted.

DataGridViewSelectionMode

Describes how cells of a DataGridView control can be selected.

DataGridViewTriState

Defines values for specifying one of three possible states.

DataSourceUpdateMode

Specifies when a data source is updated when changes occur in the bound control.

DateTimePickerFormat

Specifies the date and time format the DateTimePicker control displays.

Day

Specifies the day of the week.

DialogResult

Specifies identifiers to indicate the return value of a dialog box.

DockingBehavior

Specifies how a control should be docked by default when added through a designer.

DockStyle

Specifies the position and manner in which a control is docked.

DragAction

Specifies how and if a drag-and-drop operation should continue.

DragDropEffects

Specifies the possible effects of a drag-and-drop operation.

DrawItemState

Specifies the state of an item that is being drawn.

DrawMode

Specifies how the elements of a control are drawn.

DropImageType

Specifies the drop description image type.

ErrorBlinkStyle

Specifies constants indicating when the error icon, supplied by an ErrorProvider, should blink to alert the user that an error has occurred.

ErrorIconAlignment

Specifies constants indicating the locations that an error icon can appear in relation to the control with an error.

FixedPanel

Specifies that Panel1, Panel2, or neither panel is fixed.

FlatStyle

Specifies the appearance of a control.

FlowDirection

Defines constants that specify the direction in which consecutive user interface (UI) elements are placed in a linear layout container.

FormBorderStyle

Specifies the border styles for a form.

FormCornerPreference

Specifies the corner preference for a Form which can be set using the FormCornerPreference property.

FormStartPosition

Specifies the initial position of a form.

FormWindowState

Specifies how a form window is displayed.

FrameStyle

Specifies the frame style of the selected control.

GetChildAtPointSkip

Specifies which child controls to skip.

GridItemType

Specifies the valid grid item types for a PropertyGrid.

HelpNavigator

Specifies constants indicating which elements of the Help file to display.

HighDpiMode

Specifies the different high DPI modes that can be applied to an application.

HorizontalAlignment

Specifies how an object or text in a control is horizontally aligned relative to an element of the control.

HtmlElementInsertionOrientation

Defines values that describe where to insert a new element when using InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement).

ImageLayout

Specifies the position of the image on the control.

ImeMode

Specifies a value that determines the Input Method Editor (IME) status of an object when the object is selected.

InsertKeyMode

Represents the insertion mode used by text boxes.

ItemActivation

Specifies the user action that is required to activate items in a list view control and the feedback that is given as the user moves the mouse pointer over an item.

ItemBoundsPortion

Specifies a portion of the list view item from which to retrieve the bounding rectangle.

Keys

Specifies key codes and modifiers.

LeftRightAlignment

Specifies whether an object or text is aligned to the left or right of a reference point.

LinkBehavior

Specifies the behaviors of a link in a LinkLabel.

LinkState

Specifies constants that define the state of the link.

ListViewAlignment

Specifies how items align in the ListView.

ListViewGroupCollapsedState

Specifies the appearance of a ListViewGroup.

ListViewHitTestLocations

Defines constants that represent areas in a ListView or ListViewItem.

ListViewItemStates

Defines constants that represent the possible states of a ListViewItem.

MaskFormat

Defines how to format the text inside of a MaskedTextBox.

MdiLayout

Specifies the layout of multiple document interface (MDI) child windows in an MDI parent window.

MenuGlyph

Specifies the image to draw when drawing a menu with the DrawMenuGlyph(Graphics, Rectangle, MenuGlyph) method.

MenuMerge

Specifies the behavior of a MenuItem when it is merged with items in another menu.

MergeAction

Specifies the kind of action to take if a match is found when combining menu items on a ToolStrip.

MessageBoxButtons

Specifies constants defining which buttons to display on a MessageBox.

MessageBoxDefaultButton

Specifies constants defining the default button on a MessageBox.

MessageBoxIcon

Specifies constants defining which information to display.

MessageBoxOptions

Specifies options on a MessageBox.

MonthCalendar.HitArea

Defines constants that represent areas in a MonthCalendar control.

MouseButtons

Specifies constants that define which mouse button was pressed.

Orientation

Specifies the orientation of controls or elements of controls.

PictureBoxSizeMode

Specifies how an image is positioned within a PictureBox.

PowerLineStatus

Specifies the system power status.

PowerState

Defines identifiers that indicate a suspended system power activity mode.

PreProcessControlState

Provides options that specify the relationship between the control and preprocessing messages.

ProgressBarStyle

Specifies the style that a ProgressBar uses to indicate the progress of an operation.

PropertySort

Specifies how properties are sorted in the PropertyGrid.

RichTextBoxFinds

Specifies how a text search is carried out in a RichTextBox control.

RichTextBoxLanguageOptions

Provides RichTextBox settings for Input Method Editor (IME) and Asian language support.

RichTextBoxScrollBars

Specifies the type of scroll bars to display in a RichTextBox control.

RichTextBoxSelectionAttribute

Specifies whether any characters in the current selection have the style or attribute.

RichTextBoxSelectionTypes

Specifies the type of selection in a RichTextBox control.

RichTextBoxStreamType

Specifies the types of input and output streams used to load and save data in the RichTextBox control.

RichTextBoxWordPunctuations

Specifies the types of punctuation tables that can be used with the RichTextBox control's word-wrapping and word-breaking features.

RightToLeft

Specifies a value indicating whether the text appears from right to left, such as when using Hebrew or Arabic fonts.

ScreenOrientation

Specifies the angle of the screen.

ScrollBars

Specifies which scroll bars will be visible on a control.

ScrollButton

Specifies the type of scroll arrow to draw on a scroll bar.

ScrollEventType

Specifies the type of action used to raise the Scroll event.

ScrollOrientation

Specifies the scroll bar orientation for the Scroll event.

SearchDirectionHint

Provides a directional hint of where to search for a ListViewItem.

SecurityIDType

This enumeration is not used.

SelectionMode

Specifies the selection behavior of a list box.

Shortcut

Specifies shortcut keys that can be used by menu items.

SizeGripStyle

Specifies the style of the sizing grip on a Form.

SizeType

Specifies how rows or columns of user interface (UI) elements should be sized relative to their container.

SortOrder

Specifies how items in a list are sorted.

StatusBarPanelAutoSize

Specifies how a StatusBarPanel on a StatusBar control behaves when the control resizes.

StatusBarPanelBorderStyle

Specifies the appearance of the border for a StatusBarPanel on a StatusBar control.

StatusBarPanelStyle

Specifies whether a StatusBarPanel object on a StatusBar control is owner-drawn or system-drawn.

StructFormat

This enumeration is not used.

SystemColorMode
SystemParameter

Specifies the system parameter type.

TabAlignment

Specifies the locations of the tabs in a tab control.

TabAppearance

Specifies the appearance of the tabs in a tab control.

TabControlAction

Defines values representing TabControl events.

TabDrawMode

Specifies whether the tabs in a tab control are owner-drawn (drawn by the parent window), or drawn by the operating system.

TableLayoutPanelCellBorderStyle

Specifies the border style of a cell in a table layout control.

TableLayoutPanelGrowStyle

Specifies how a TableLayoutPanel will gain additional rows or columns after its existing cells are full.

TabSizeMode

Specifies how tabs in a tab control are sized.

TaskDialogExpanderPosition

Specifies where the expanded area of the task dialog is to be displayed.

TaskDialogProgressBarState

Contains constants that specify the state of a task dialog progress bar.

TaskDialogStartupLocation

Specifies the position that a task dialog will be shown in when it is first opened.

TextDataFormat

Specifies the formats used with text-related methods of the Clipboard and DataObject classes.

TextFormatFlags

Specifies the display and layout information for text strings.

TextImageRelation

Specifies the position of the text and image relative to each other on a control.

TickStyle

Specifies the location of tick marks in a TrackBar control.

ToolBarAppearance

Specifies the type of toolbar to display.

ToolBarButtonStyle

Specifies the button style within a toolbar.

ToolBarTextAlign

Specifies the alignment of text on the toolbar button control.

ToolStripDropDownCloseReason

Specifies the reason that a ToolStripDropDown control was closed.

ToolStripDropDownDirection

Specifies the direction in which a ToolStripDropDown control is displayed relative to its parent control.

ToolStripGripDisplayStyle

Specifies the orientation of the ToolStrip move handle (grip).

ToolStripGripStyle

Specifies visibility of a ToolStrip move handle (grip).

ToolStripItemAlignment

Determines the alignment of a ToolStripItem in a ToolStrip.

ToolStripItemDisplayStyle

Specifies what to render (image or text) for this ToolStripItem.

ToolStripItemImageScaling

Specifies whether the size of the image on a ToolStripItem is automatically adjusted to fit on a ToolStrip while retaining the original image proportions.

ToolStripItemOverflow

Determines whether a ToolStripItem is placed in the overflow ToolStrip.

ToolStripItemPlacement

Specifies where a ToolStripItem is to be layed out.

ToolStripLayoutStyle

Specifies the possible alignments with which the items of a ToolStrip can be displayed.

ToolStripManagerRenderMode

Specifies the painting style applied to multiple ToolStrip objects contained in a form.

ToolStripRenderMode

Specifies the painting style applied to one ToolStrip contained in a form.

ToolStripStatusLabelBorderSides

Specifies which sides of a ToolStripStatusLabel have borders.

ToolStripTextDirection

Specifies the text orientation to use with a particular LayoutStyle.

ToolTipIcon

Defines a set of standardized icons that can be associated with a ToolTip.

TreeNodeStates

Defines constants that represent the possible states of a TreeNode.

TreeViewAction

Specifies the action that raised a TreeViewEventArgs event.

TreeViewDrawMode

Defines constants that represent the ways a TreeView can be drawn.

TreeViewHitTestLocations

Defines constants that represent areas of a TreeView or TreeNode.

UICues

Specifies the state of the user interface.

UnhandledExceptionMode

Defines where a Windows Forms application should send unhandled exceptions.

ValidationConstraints

Defines constants that inform ValidateChildren(ValidationConstraints) about how it should validate a container's child controls.

View

Specifies how list items are displayed in a ListView control.

WebBrowserEncryptionLevel

Specifies constants that define the encryption methods used by documents displayed in the WebBrowser control.

WebBrowserReadyState

Specifies constants that define the state of the WebBrowser control.

WebBrowserRefreshOption

Specifies constants that define how the WebBrowser control can refresh its contents.

Delegates

Application.MessageLoopCallback

Represents a method that will check whether the hosting environment is still sending messages.

AxHost.AboutBoxDelegate

Represents the method that will display an ActiveX control's About dialog box.

BindingCompleteEventHandler

Represents the method that will handle the BindingComplete event in data-binding scenarios.

BindingManagerDataErrorEventHandler

Represents the method that will handle the DataError event of a BindingManagerBase.

CacheVirtualItemsEventHandler

Represents the method that will handle the CacheVirtualItems event of a ListView.

ColumnClickEventHandler

Represents the method that will handle the ColumnClick event of a ListView.

ColumnReorderedEventHandler

Represents the method that will handle the ColumnReordered event of the ListView control.

ColumnWidthChangedEventHandler

Represents the method that will handle the ColumnWidthChanged event of a ListView.

ColumnWidthChangingEventHandler

Represents the method that will handle the ColumnWidthChanging event of a ListView.

ContentsResizedEventHandler

Represents the method that will handle the ContentsResized event of a RichTextBox.

ControlEventHandler

Represents the method that will handle the ControlAdded and ControlRemoved events of the Control class.

ConvertEventHandler

Represents the method that will handle the Parse and Format events of a Binding.

DataGridViewAutoSizeColumnModeEventHandler

Represents the method that will handle the AutoSizeColumnModeChanged event of a DataGridView control.

DataGridViewAutoSizeColumnsModeEventHandler

Represents the method that will handle the AutoSizeColumnsModeChanged event of a DataGridView control.

DataGridViewAutoSizeModeEventHandler

Represents the method that will handle the AutoSizeRowsModeChanged or RowHeadersWidthSizeModeChanged events of a DataGridView.

DataGridViewBindingCompleteEventHandler

Represents the method that will handle the DataBindingComplete event of a DataGridView.

DataGridViewCellCancelEventHandler

Represents the method that will handle the CellBeginEdit and RowValidating events of a DataGridView.

DataGridViewCellContextMenuStripNeededEventHandler

Represents the method that will handle a CellContextMenuStripNeeded event of a DataGridView.

DataGridViewCellErrorTextNeededEventHandler

Represents the method that will handle the CellErrorTextNeeded event of a DataGridView.

DataGridViewCellEventHandler

Represents the method that will handle DataGridView events related to cell and row operations.

DataGridViewCellFormattingEventHandler

Represents the method that will handle the CellFormatting event of a DataGridView.

DataGridViewCellMouseEventHandler

Represents the method that will handle mouse-related events raised by a DataGridView.

DataGridViewCellPaintingEventHandler

Represents the method that will handle the CellPainting event of a DataGridView.

DataGridViewCellParsingEventHandler

Represents the method that will handle a CellParsing event of a DataGridView.

DataGridViewCellStateChangedEventHandler

Represents the method that will handle the CellStateChanged event of a DataGridView.

DataGridViewCellStyleContentChangedEventHandler

Represents the method that will handle the CellStyleContentChanged event of a DataGridView.

DataGridViewCellToolTipTextNeededEventHandler

Represents the method that will handle the CellToolTipTextNeeded event of a DataGridView.

DataGridViewCellValidatingEventHandler

Represents the method that will handle the CellValidating event of a DataGridView control.

DataGridViewCellValueEventHandler

Represents the method that will handle the CellValueNeeded event or CellValuePushed event of a DataGridView.

DataGridViewColumnDividerDoubleClickEventHandler

Represents the method that will handle the ColumnDividerDoubleClick event of a DataGridView.

DataGridViewColumnEventHandler

Represents the method that will handle column-related events of a DataGridView.

DataGridViewColumnStateChangedEventHandler

Represents the method that will handle the ColumnStateChanged event of a DataGridView.

DataGridViewDataErrorEventHandler

Represents the method that will handle the DataError event of a DataGridView.

DataGridViewEditingControlShowingEventHandler

Represents the method that will handle the EditingControlShowing event of a DataGridView.

DataGridViewRowCancelEventHandler

Represents the method that will handle the UserDeletingRow event of a DataGridView.

DataGridViewRowContextMenuStripNeededEventHandler

Represents the method that will handle the RowContextMenuStripNeeded event of a DataGridView.

DataGridViewRowDividerDoubleClickEventHandler

Represents the method that will handle the RowDividerDoubleClick event of a DataGridView.

DataGridViewRowErrorTextNeededEventHandler

Represents the method that will handle the RowErrorTextNeeded event of a DataGridView.

DataGridViewRowEventHandler

Represents the method that will handle row-related events of a DataGridView.

DataGridViewRowHeightInfoNeededEventHandler

Represents the method that will handle an RowHeightInfoNeeded event of a DataGridView control.

DataGridViewRowHeightInfoPushedEventHandler

Represents the method that will handle the RowHeightInfoPushed event of a DataGridView.

DataGridViewRowPostPaintEventHandler

Represents the method that will handle the RowPostPaint event of a DataGridView.

DataGridViewRowPrePaintEventHandler

Represents the method that will handle the RowPrePaint event of a DataGridView.

DataGridViewRowsAddedEventHandler

Represents the method that will handle the RowsAdded event of a DataGridView.

DataGridViewRowsRemovedEventHandler

Represents the method that will handle the RowsRemoved event of a DataGridView.

DataGridViewRowStateChangedEventHandler

Represents the method that will handle the RowStateChanged event of a DataGridView.

DataGridViewSortCompareEventHandler

Represents the method that will handle the SortCompare event of a DataGridView control.

DateBoldEventHandler

Represents the method that will handle an internal event of the MonthCalendar control.

DateRangeEventHandler

Represents the method that will handle the DateChanged or DateSelected event of a MonthCalendar.

DpiChangedEventHandler

Represents the method that will handle a DpiChanged event of a form or control.

DragEventHandler

Represents the method that will handle the DragDrop, DragEnter, or DragOver event of a Control.

DrawItemEventHandler

Represents the method that will handle the DrawItem event of a ComboBox, ListBox, MenuItem, or TabControl control.

DrawListViewColumnHeaderEventHandler

Represents the method that will handle the DrawColumnHeader event of a ListView.

DrawListViewItemEventHandler

Represents the method that will handle the DrawItem event of a ListView.

DrawListViewSubItemEventHandler

Represents the method that will handle the DrawSubItem event of a ListView.

DrawToolTipEventHandler

Represents the method that will handle the Draw event of a ToolTip.

DrawTreeNodeEventHandler

Represents the method that will handle the DrawNode event of a TreeView.

FormClosedEventHandler

Represents the method that handles a FormClosed event.

FormClosingEventHandler

Represents the method that handles a FormClosing event.

GiveFeedbackEventHandler

Represents the method that handles the GiveFeedback event of a Control.

HelpEventHandler

Represents the method that will handle the HelpRequested event of a Control.

HtmlElementErrorEventHandler

Represents the method that will handle the Error event of an HtmlWindow.

HtmlElementEventHandler

Represents the method that will handle the Click, MouseDown and related events on HtmlDocument, HtmlElement, and HtmlWindow.

InputLanguageChangedEventHandler

Represents the method that will handle the InputLanguageChanged event of a Form.

InputLanguageChangingEventHandler

Represents the method that will handle the InputLanguageChanging event of a Form.

InvalidateEventHandler

Represents the method that will handle the Invalidated event of a Control.

ItemChangedEventHandler

Represents the method that will handle the ItemChanged event of the CurrencyManager class.

ItemCheckedEventHandler

Represents the method that will handle the ItemChecked event of a ListView control.

ItemCheckEventHandler

Represents the method that will handle the ItemCheck event of a CheckedListBox or ListView control.

ItemDragEventHandler

Represents the method that will handle the ItemDrag event of a ListView or TreeView control.

KeyEventHandler

Represents the method that will handle the KeyUp or KeyDown event of a Control.

KeyPressEventHandler

Represents the method that will handle the KeyPress event of a Control.

LabelEditEventHandler

Represents the method that handles the BeforeLabelEdit and AfterLabelEdit events.

LayoutEventHandler

Represents the method that will handle the Layout event of a Control.

LinkClickedEventHandler

Represents the method that will handle the LinkClicked event of a RichTextBox.

LinkLabelLinkClickedEventHandler

Represents the method that will handle the LinkClicked event of a LinkLabel.

ListControlConvertEventHandler

Represents the method that will handle converting a ListControl.

ListViewItemMouseHoverEventHandler

Represents the method that will handle the ItemMouseHover event of a ListView.

ListViewItemSelectionChangedEventHandler

Represents the method that will handle the ItemSelectionChanged event of a ListView.

ListViewVirtualItemsSelectionRangeChangedEventHandler

Represents the method that will handle the VirtualItemsSelectionRangeChanged event of a ListView.

MaskInputRejectedEventHandler

Represents the method that will handle the MaskInputRejected event of a MaskedTextBox control.

MeasureItemEventHandler

Represents the method that will handle the MeasureItem event of the ListBox, ComboBox, CheckedListBox, or MenuItem controls.

MethodInvoker

Represents a delegate that can execute any method in managed code that is declared void and takes no parameters.

MouseEventHandler

Represents the method that will handle the MouseDown, MouseUp, or MouseMove event of a form, control, or other component.

NavigateEventHandler

Represents the method that will handle the NavigateEventArgs event of a DataGrid.

NodeLabelEditEventHandler

Represents the method that will handle the BeforeLabelEdit and AfterLabelEdit events of a TreeView control.

PaintEventHandler

Represents the method that will handle the Paint event of a Control.

PopupEventHandler

Represents the method that handles the Popup event of the ToolTip class.

PreviewKeyDownEventHandler

Represents the method that will handle the PreviewKeyDown event for a control.

PropertyTabChangedEventHandler

Represents the method that will handle the PropertyTabChanged event of a PropertyGrid.

PropertyValueChangedEventHandler

The event handler class that is invoked when a property in the grid is modified by the user.

QueryAccessibilityHelpEventHandler

Represents the method that will handle the QueryAccessibilityHelp event of a control.

QueryContinueDragEventHandler

Represents the method that will handle the QueryContinueDrag event of a Control.

QuestionEventHandler

Represents the method that will handle the CancelRowEdit event or the RowDirtyStateNeeded event of a DataGridView.

RetrieveVirtualItemEventHandler

Represents the method that will handle the RetrieveVirtualItem event of a ListView.

ScrollEventHandler

Represents the method that handles the Scroll event of a DataGridView or ScrollBar.

SearchForVirtualItemEventHandler

Represents the method that will handle the SearchForVirtualItem event of a ListView.

SelectedGridItemChangedEventHandler

Represents the method that will handle the SelectedGridItemChanged event of a PropertyGrid.

SplitterCancelEventHandler

Represents the method that will handle the SplitterMoving event of a Splitter.

SplitterEventHandler

Represents the method that will handle the SplitterMoving and SplitterMoved events of a Splitter.

StatusBarDrawItemEventHandler

Represents the method that will handle the DrawItem event of a StatusBar.

StatusBarPanelClickEventHandler

Represents the method that will handle the PanelClick event of a StatusBar.

TabControlCancelEventHandler

Represents the method that will handle the Selecting or Deselecting event of a TabControl control.

TabControlEventHandler

Represents the method that will handle the Selected or Deselected event of a TabControl control.

TableLayoutCellPaintEventHandler

Represents the method that will handle the CellPaint event.

ToolBarButtonClickEventHandler

Represents the method that will handle the ButtonClick event of a ToolBar.

ToolStripArrowRenderEventHandler

Represents the method that will handle the RenderArrow event of a ToolStripRenderer. This class cannot be inherited.

ToolStripContentPanelRenderEventHandler

Represents the method that will handle the RendererChanged event of a ToolStripContentPanel.

ToolStripDropDownClosedEventHandler

Represents the method that will handle the Closed event of a ToolStripDropDown.

ToolStripDropDownClosingEventHandler

Represents the method that handles the Closing event of a ToolStripDropDown.

ToolStripGripRenderEventHandler

Represents the method that will handle the RenderGrip event of a ToolStripRenderer.

ToolStripItemClickedEventHandler

Represents the method that will handle the ItemClicked event of a ToolStripItem.

ToolStripItemEventHandler

Represents the method that will handle events for a ToolStripItem.

ToolStripItemImageRenderEventHandler

Represents the method that will handle the RenderItemImage event or RenderItemCheck event of a ToolStripRenderer.

ToolStripItemRenderEventHandler

Represents the method that handles the events that render the background of objects derived from ToolStripItem in the ToolStripRenderer class.

ToolStripItemTextRenderEventHandler

Represents the method that will handle the RenderItemText event of a ToolStripRenderer.

ToolStripPanelRenderEventHandler

Represents the method that will handle ToolStripPanel paint events.

ToolStripRenderEventHandler

Represents the method that will handle the RenderToolStripBorder event or the RenderToolStripBackground event of a ToolStripRenderer.

ToolStripSeparatorRenderEventHandler

Represents the method that will handle the RenderSeparator event of a ToolStripRenderer class.

TreeNodeMouseClickEventHandler

Represents the method that will handle the NodeMouseClick and NodeMouseDoubleClick events of a TreeView.

TreeNodeMouseHoverEventHandler

Represents the method that will handle the NodeMouseHover event of a TreeView.

TreeViewCancelEventHandler

Represents the method that will handle the BeforeCheck, BeforeCollapse, BeforeExpand, or BeforeSelect event of a TreeView.

TreeViewEventHandler

Represents the method that will handle the AfterCheck, AfterCollapse, AfterExpand, or AfterSelect event of a TreeView.

TypeValidationEventHandler

Represents the method that will handle the TypeValidationCompleted event of the MaskedTextBox control.

UICuesEventHandler

Represents a method that will handle the ChangeUICues event of a Control.

UpDownEventHandler

Represents the method that will handle an event for an internal class.

WebBrowserDocumentCompletedEventHandler

Represents the method that will handle the DocumentCompleted event of a WebBrowser control.

WebBrowserNavigatedEventHandler

Represents the method that will handle the Navigated event of a WebBrowser control.

WebBrowserNavigatingEventHandler

Represents the method that will handle the Navigating event of a WebBrowser control.

WebBrowserProgressChangedEventHandler

Represents the method that will handle the ProgressChanged event of a WebBrowser control.

Remarks

The following table shows the classes in System.Windows.Forms namespace grouped into categories.

Class category Details
- Control, User Control, and Form Most classes within the System.Windows.Forms namespace derive from the Control class. The Control class provides the base functionality for all controls that are displayed on a Form. The Form class represents a window within an application. This includes dialog boxes, modeless windows, and Multiple Document Interface (MDI) client and parent windows. You can also create your own controls by deriving from the UserControl class.
- Menus and Toolbars Windows Forms contains a rich set of classes for creating your own custom toolbars and menus with modern appearance and behavior (look and feel). ToolStrip, MenuStrip, ContextMenuStrip, and StatusStrip can be used to create toolbars, menu bars, context menus, and status bars, respectively.
- Controls The System.Windows.Forms namespace provides a variety of control classes that you can use to create rich user interfaces. Some controls are designed for data entry within the application, such as TextBox and ComboBox controls. Other controls display application data, such as Label and ListView. The namespace also provides controls for invoking commands within the application, such as Button. The WebBrowser control and managed HTML classes, such as HtmlDocument, let you display and manipulate HTML pages within your managed Windows Forms application. The MaskedTextBox control is an advanced data entry control that lets you define masks that automatically accept or reject user input. Additionally, you can use the PropertyGrid control to create your own Windows Forms Designer that displays the designer-visible properties of the controls.
- Layout Several important classes in Windows Forms help control the layout of controls on a display surface, such as a form or control. FlowLayoutPanel lays out all the controls it contains in a serial manner, and TableLayoutPanel lets you define cells and rows for laying out controls in a fixed grid. SplitContainer divides your display surface into two or more adjustable parts.
- Data and Data Binding Windows Forms defines a rich architecture for binding to data sources such as databases and XML files. The DataGridView control provides a customizable table for displaying data, and lets you customize cells, rows, columns, and borders. The BindingNavigator control represents a standardized way to navigate and work with data on a form; BindingNavigator is frequently paired with the BindingSource control to move through data records on a form and interact with them.
- Components Besides controls, the System.Windows.Forms namespace provides other classes that do not derive from the Control class but still provide visual features to a Windows-based application. Some classes, such as ToolTip and ErrorProvider, extend the capabilities or provide information to the user. With the Help and HelpProvider classes, you can display Help information to a user of your applications.
- Common Dialog Boxes Windows provides several common dialog boxes that you can use to give your application a consistent user interface when performing tasks such as opening and saving files, manipulating the font or text color, or printing. The OpenFileDialog and SaveFileDialog classes provide the functionality to display a dialog box that lets the user locate and enter the name of a file to open or save. The FontDialog class displays a dialog box to change elements of the Font used by your application. The PageSetupDialog, PrintPreviewDialog, and PrintDialog classes display dialog boxes that enable the user to control aspects of printing documents. For more information about printing from a Windows-based application, see the System.Drawing.Printing namespace. Besides the common dialog boxes, the System.Windows.Forms namespace provides the MessageBox class for displaying a message box that can display and retrieve data from the user.

There are several classes within the System.Windows.Forms namespace that provide support to the classes mentioned in the previous summary. Examples of the supporting classes are enumerations, event argument classes, and delegates used by events within controls and components.

Caution

Classes within the Windows Forms namespace are not supported for use within a Windows service. Trying to use these classes from within a service may produce unexpected problems, such as diminished service performance and run-time exceptions.

If you are using .NET Framework version 1.1 or .NET Framework 1.0 and you must make your Windows Forms application support Windows XP visual styles, make sure that you set the FlatStyle property of your controls to FlatStyle.System and include a manifest with your executable file. A manifest is an XML file that is included either as a resource within your application executable file or as a separate file that resides in the same directory as the executable file. For an example of a manifest, see the Example section for the FlatStyle enumeration. By default visual styles are enabled for the .NET Framework versions 1.1, 1.2, and 2.0.