System. Windows. Forms Namespace

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

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

Provides ambient property values to top-level controls.

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.

Specifies the contextual information about an application thread.

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

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

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

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

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

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

Encapsulates the persisted state of an ActiveX control.

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

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

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

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

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

Provides data for the BindingComplete event.

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

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

Provides data for the DataError event.

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

Represents a collection of Binding objects for a control.

Encapsulates the data source for a form.

Represents a Windows button control.

Implements the basic functionality common to button controls.

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

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

Provides data for the CacheVirtualItems event.

Represents a Windows CheckBox.

Provides information about the CheckBox control to accessibility client applications.

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

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

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

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

Represents the collection of items in a CheckedListBox.

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

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

Provides data for the ColumnClick event.

Displays a single column header in a ListView control.

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

Provides data for the ColumnReordered event.

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

Provides data for the ColumnWidthChanged event.

Provides data for the ColumnWidthChanging event.

Represents a Windows combo box control.

Provides information about the ComboBox control to accessibility client applications.

Represents the collection of items in a ComboBox.

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

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

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

Provides data for the ContentsResized event.

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.

Represents a shortcut menu.

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

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

Represents a collection of Control objects.

Represents the collection of data bindings for a control.

Provides data for the ControlAdded and ControlRemoved events.

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

Provides data for the Format and Parse events.

Encapsulates the information needed when creating a control.

Manages a list of Binding objects.

Represents the image used to paint the mouse pointer.

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

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

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

Represents a Clipboard format type.

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.

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

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

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

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

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

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

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

Represents a TextBox control that is hosted in a DataGridTextBoxColumn.

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

Displays data in a customizable grid.

Provides information about the DataGridView control to accessibility client applications.

Represents a collection of controls contained on a DataGridView.

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

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

Contains border styles for the cells in a DataGridView control.

Provides data for the AutoSizeColumnModeChanged event.

Represents a linear collection of elements in a DataGridView control.

Provides data for the DataBindingComplete event.

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

Provides information about a DataGridViewButtonCell to accessibility client applications.

Hosts a collection of DataGridViewButtonCell objects.

Represents an individual cell in a DataGridView control.

Provides information about a DataGridViewCell to accessibility client applications.

Provides data for CellBeginEdit and RowValidating events.

Represents a collection of cells in a DataGridViewRow.

Provides data for the CellErrorTextNeeded event of a DataGridView control.

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

Provides data for the CellFormatting event of a DataGridView.

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

Provides data for the CellPainting event.

Provides data for the CellParsing event of a DataGridView control.

Provides data for the CellStateChanged event.

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

Provides data for the CellStyleContentChanged event.

Converts DataGridViewCellStyle objects to and from other data types.

Provides data for the CellToolTipTextNeeded event.

Provides data for the CellValidating event of a DataGridView control.

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

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

Provides information about a DataGridViewCheckBoxCell to accessibility client applications.

Hosts a collection of DataGridViewCheckBoxCell objects.

Represents a column in a DataGridView control.

Represents a collection of DataGridViewColumn objects in a DataGridView control.

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

Provides data for column-related events of a DataGridView.

Represents a column header in a DataGridView control.

Provides information about a DataGridViewColumnHeaderCell to accessibility client applications.

Provides data for the ColumnStateChanged event.

Displays a combo box in a DataGridView control.

Represents the accessibility object for the current DataGridViewComboBoxCell object.

Represents the collection of selection choices in a DataGridViewComboBoxCell.

Represents a column of DataGridViewComboBoxCell objects.

Represents the hosted combo box control in a DataGridViewComboBoxCell.

Provides data for the DataError event.

Provides data for the EditingControlShowing event.

Provides the base class for elements of a DataGridView control.

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

Displays a graphic in a DataGridView control.

Provides information about a DataGridViewImageCell to accessibility client applications.

Hosts a collection of DataGridViewImageCell objects.

Represents a cell that contains a link.

Provides information about a DataGridViewLinkCell control to accessibility client applications.

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

Represents a row in a DataGridView control.

Provides information about a DataGridViewRow to accessibility client applications.

Provides data for the UserDeletingRow event of a DataGridView.

A collection of DataGridViewRow objects.

Provides data for the RowContextMenuStripNeeded event.

Provides data for the RowErrorTextNeeded event of a DataGridView control.

Provides data for row-related DataGridView events.

Represents a row header of a DataGridView control.

Provides information about a DataGridViewRowHeaderCell to accessibility client applications.

Provides data for the RowHeightInfoNeeded event of a DataGridView.

Provides data for the RowHeightInfoPushed event of a DataGridView.

Provides data for the RowPostPaint event.

Provides data for the RowPrePaint event.

Provides data for the RowsAdded event.

Provides data for the RowsRemoved event.

Provides data for the RowStateChanged event of a DataGridView.

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

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

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

Provides data for the SortCompare event.

Displays editable text information in a DataGridView control.

Represents the accessibility object for the current DataGridViewTextBoxCell object.

Hosts a collection of DataGridViewTextBoxCell cells.

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

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.

Provides information about a DataGridViewTopLeftHeaderCell to accessibility client applications.

Implements a basic data transfer mechanism.

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

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

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.

Provides information about the DateTimePicker control to accessibility client applications.

Specifies the default docking behavior for a control.

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

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

Provides information about the DomainUpDown control to accessibility client applications.

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

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

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

Provides data for the DrawItem event.

Provides data for the DrawColumnHeader event.

Provides data for the DrawItem event.

Provides data for the DrawSubItem event.

Provides data for the Draw event.

Provides data for the DrawNode event.

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

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

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

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

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

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

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

Collects the characteristics associated with flow layouts.

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

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

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

Represents a collection of controls on the form.

Provides data for the FormClosed event.

Provides data for the FormClosing event.

Represents a collection of Form objects.

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

Represents a collection of DataGridColumnStyle objects in the DataGrid control.

Implements one row in a PropertyGrid.

Contains a collection of GridItem objects.

Represents a collection of DataGridTableStyle objects in the DataGrid control.

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

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

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

Encapsulates the HTML Help 1.0 engine.

Provides data for the HelpRequested event.

Provides pop-up or online Help for controls.

Represents a standard Windows horizontal scroll bar.

Provides basic properties for the HScrollBar.

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

Represents an HTML element inside of a Web page.

Defines a collection of HtmlElement objects.

Provides data for the Error event.

Provides data for the events defined on HtmlDocument and HtmlElement.

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

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

Represents the windows contained within another HtmlWindow.

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

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

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

Encapsulates the collection of Image objects in an ImageList.

Provides the data portion of an ImageList.

Contains static methods that interact directly with the IME API.

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

Provides data for the InputLanguageChanged event.

Provides data for the InputLanguageChanging event.

Provides data for the Invalidated event.

Provides data for the ItemChanged event.

Provides data for the ItemChecked event of the ListView control.

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

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

Provides data for the KeyDown or KeyUp event.

Provides data for the KeyPress event.

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

Represents a standard Windows label.

Provides data for the BeforeLabelEdit and AfterLabelEdit events.

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

Provides a base class for collecting layout scheme characteristics.

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

Provides data for the LinkClicked event.

Provides a type converter for LinkLabel.Link objects.

Represents a Windows label control that can display hyperlinks.

Represents a link within a LinkLabel control.

Represents the collection of links within a LinkLabel control.

Provides data for the LinkClicked event.

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

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.

Represents a Windows control to display a list of items.

Represents a collection of integers in a ListBox.

Represents the collection of items in a ListBox.

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

Represents the collection of selected items in the ListBox.

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

Provides data for the Format event.

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

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

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

Represents the collection of column headers in a ListView control.

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

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

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

Represents a group of items displayed within a ListView control.

Represents the collection of groups within a ListView control.

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

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.

Represents an item in a ListView control.

Represents a subitem of a ListViewItem.

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

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

Provides data for the ItemMouseHover event.

Provides data for the ItemSelectionChanged event.

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

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.

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

Provides data for the MaskInputRejected event.

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

Contains a collection of MdiClient controls.

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

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.

Represents a collection of MenuItem objects.

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.

Provides a menu system for a form.

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.

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

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

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

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

Provides data for the Navigate event.

Provides data for the BeforeLabelEdit and AfterLabelEdit events.

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

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

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.

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

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

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

Provides operating-system specific feature queries.

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

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

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

Provides data for the Paint event.

Used to group collections of controls.

Represents a Windows picture box control for displaying an image.

Provides data for the Popup event.

Indicates current system power status information.

Provides data for the PreviewKeyDown event.

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

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

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.

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

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

Provides colors used for Microsoft Office display elements.

Represents a Windows progress bar control.

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

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

Contains a collection of PropertyTab objects.

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

Provides data for the PropertyTabChanged event of a PropertyGrid.

Provides data for the PropertyValueChanged event of a PropertyGrid.

Provides data for the QueryAccessibilityHelp event.

Provides data for the QueryContinueDrag event.

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

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

Provides information about the RadioButton control to accessibility client applications.

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.

Indicates which ImageList a property is related to.

Provides data for the RetrieveVirtualItem event.

Represents a Windows rich text box control.

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

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

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

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

Determines the border padding for docked controls.

Implements the basic functionality of a scroll bar control.

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

Provides data for the Scroll event.

Encapsulates properties related to scrolling.

Provides data for the SearchForVirtualItem event.

Provides data for the SelectedGridItemChanged event of the PropertyGrid control.

Represents a date selection range in a month calendar control.

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

Provides methods for sending keystrokes to an application.

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

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.

Provides data for splitter events.

Provides data for SplitterMoving and the SplitterMoved events.

Creates a panel that is associated with a SplitContainer.

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.

Represents the collection of panels in a StatusBar control.

Provides data for the DrawItem event.

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.

Provides data for the PanelClick event.

Represents a Windows status bar control.

Provides information about the current system environment.

Manages a related set of tab pages.

Contains a collection of Control objects.

Contains a collection of TabPage objects.

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

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

Provides data for the CellPaint event.

A collection that stores ColumnStyle objects.

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

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

A collection that stores RowStyle objects.

Collects the characteristics associated with table layouts.

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

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

Represents a single tab page in a TabControl.

Contains the collection of controls that the TabPage uses.

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

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.

Represents a button control of a task dialog.

Represents a collection of TaskDialogButton objects.

Represents a command link button control of a task dialog.

Represents a control of a task dialog.

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

Represents the footnote area of a task dialog.

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).

Provides data for the LinkClicked event.

Represents a page of content of a task dialog.

Represents a progress bar control of a task dialog.

Represents a radio button control of a task dialog.

Represents a collection of TaskDialogRadioButton objects.

Represents a verification checkbox control of a task dialog.

Represents a Windows text box control.

Implements the basic functionality required by text controls.

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

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

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

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.

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.

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

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.

Provides data for the ButtonClick event.

Provides a container for Windows toolbar objects.

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

Provides data for the RenderArrow event.

Represents a selectable ToolStripItem that can contain text and images.

Represents a ToolStripComboBox that is properly rendered in a ToolStrip.

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

Represents the center panel of a ToolStripContainer control.

Provides data for the RendererChanged event.

Hosts custom controls or Windows Forms controls.

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

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

Provides information about the ToolStripDropDown control to accessibility client applications.

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

Provides data for the Closed event.

Provides data for the Closing event.

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

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

Provides basic functionality for the ContextMenuStrip control.

Provides data for the RenderGrip event.

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

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

Provides data for the ItemClicked event.

Represents a collection of ToolStripItem objects.

Provides data for ToolStripItem events.

Provides data for the RenderItemImage event.

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

Provides data for the RenderItemText event.

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

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

Represents a selectable option displayed on a MenuStrip or ContextMenuStrip.

Manages the overflow behavior of a ToolStrip.

Hosts a ToolStripDropDown that displays items that overflow the ToolStrip.

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

Provides data for ToolStripPanel drawing.

Represents a row of a ToolStripPanel that can contain controls.

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

Represents a Windows progress bar control contained in a StatusStrip.

Handles the painting functionality for ToolStrip objects.

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

Provides data for the RenderGrip event.

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 .

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

Represents a panel in a StatusStrip control.

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

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

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.

Represents a standard Windows track bar.

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

Represents a node of a TreeView.

Represents a collection of TreeNode objects.

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

Provides data for the NodeMouseHover event.

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

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

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.

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

Provides data for the TypeValidationCompleted event.

Provides data for the ChangeUICues event.

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

Provides data for controls that derive from the UpDownBase control.

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

Represents a standard Windows vertical scroll bar.

Provides basic properties for the VScrollBar class.

Enables a user to navigate Web pages inside a form.

Represents the host window of a WebBrowser control.

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

Provides data for the DocumentCompleted event.

Provides data for the Navigated event.

Provides data for the Navigating event.

Provides data for the ProgressChanged event.

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

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

Provides a synchronization context for the Windows Forms application model.

Structs

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.

Identifies a cell in the grid.

Helper class that provides information about the IME conversion mode.

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

Implements a Windows message.

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

Represents a cell in a TableLayoutPanel.

Interfaces

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

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

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

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

Provides custom binding management for components.

Provides an editing notification interface.

Represents methods that process editing requests.

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

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

Provides a format-independent mechanism for transferring data.

Defines mouse events.

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

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

Defines a message filter interface.

Provides an interface to expose Win32 HWND handles.

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

Enums

Specifies events that are reported by accessible applications.

Specifies values for navigating among accessible objects.

Specifies values representing possible roles for an accessible object.

Specifies how an accessible object is selected or receives focus.

Specifies values representing possible states for an accessible object.

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

Specifies the appearance of a control.

Specifies the direction in which the system arranges minimized windows.

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

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

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

Specifies the source for ComboBox and TextBox automatic completion functionality.

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

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

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

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

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

Specifies the direction of the binding operation.

Indicates the result of a completed binding operation.

Specifies the boot mode in which the system was started.

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

Specifies the style of a three-dimensional border.

Specifies the border style for a control.

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

Specifies the border style for a button control.

Specifies the appearance of a button.

Specifies the type of caption button to display.

Specifies the case of characters in a TextBox control.

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

Specifies the reason that a form was closed.

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

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

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

Specifies the ComboBox style.

Specifies the style and behavior of a control.

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

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

Specifies the style of gridlines in a DataGrid.

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

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

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

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

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

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

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

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

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

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

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

Defines constants that indicate how a DataGridViewComboBoxCell is displayed.

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

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

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

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

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

Specifies a location in a DataGridView control.

Specifies the layout for an image contained in a DataGridViewCell.

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

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

Describes how cells of a DataGridView control can be selected.

Defines values for specifying one of three possible states.

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

Specifies the date and time format the DateTimePicker control displays.

Specifies the day of the week.

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

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

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

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

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

Specifies the state of an item that is being drawn.

Specifies how the elements of a control are drawn.

Specifies the drop description image type.

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

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

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

Specifies the appearance of a control.

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

Specifies the border styles for a form.

Specifies the initial position of a form.

Specifies how a form window is displayed.

Specifies the frame style of the selected control.

Specifies which child controls to skip.

Specifies the valid grid item types for a PropertyGrid.

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

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

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

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

Specifies the position of the image on the control.

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

Represents the insertion mode used by text boxes.

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.

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

Specifies key codes and modifiers.

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

Specifies the behaviors of a link in a LinkLabel.

Specifies constants that define the state of the link.

Specifies how items align in the ListView.

Specifies the appearance of a ListViewGroup.

Defines constants that represent areas in a ListView or ListViewItem.

Defines constants that represent the possible states of a ListViewItem.

Defines how to format the text inside of a MaskedTextBox.

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

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

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

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

Specifies constants defining which buttons to display on a MessageBox.

Specifies constants defining the default button on a MessageBox.

Specifies constants defining which information to display.

Specifies options on a MessageBox.

Defines constants that represent areas in a MonthCalendar control.

Specifies constants that define which mouse button was pressed.

Specifies the orientation of controls or elements of controls.

Specifies how an image is positioned within a PictureBox.

Specifies the system power status.

Defines identifiers that indicate a suspended system power activity mode.

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

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

Specifies how properties are sorted in the PropertyGrid.

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

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

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

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

Specifies the type of selection in a RichTextBox control.

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

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

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

Specifies the angle of the screen.

Specifies which scroll bars will be visible on a control.

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

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

Specifies the scroll bar orientation for the Scroll event.

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

This enumeration is not used.

Specifies the selection behavior of a list box.

Specifies shortcut keys that can be used by menu items.

Specifies the style of the sizing grip on a Form.

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

Specifies how items in a list are sorted.

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

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

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

This enumeration is not used.

Specifies the system parameter type.

Specifies the locations of the tabs in a tab control.

Specifies the appearance of the tabs in a tab control.

Defines values representing TabControl events.

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

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

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

Specifies how tabs in a tab control are sized.

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

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

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

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

Specifies the display and layout information for text strings.

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

Specifies the location of tick marks in a TrackBar control.

Specifies the type of toolbar to display.

Specifies the button style within a toolbar.

Specifies the alignment of text on the toolbar button control.

Specifies the reason that a ToolStripDropDown control was closed.

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

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

Specifies visibility of a ToolStrip move handle (grip).

Determines the alignment of a ToolStripItem in a ToolStrip.

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

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

Determines whether a ToolStripItem is placed in the overflow ToolStrip.

Specifies where a ToolStripItem is to be layed out.

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

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

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

Specifies which sides of a ToolStripStatusLabel have borders.

Specifies the text orientation to use with a particular LayoutStyle.

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

Defines constants that represent the possible states of a TreeNode.

Specifies the action that raised a TreeViewEventArgs event.

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

Defines constants that represent areas of a TreeView or TreeNode.

Specifies the state of the user interface.

Defines where a Windows Forms application should send unhandled exceptions.

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

Specifies how list items are displayed in a ListView control.

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

Specifies constants that define the state of the WebBrowser control.

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

Delegates

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Represents the method that handles a FormClosed event.

Represents the method that handles a FormClosing event.

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

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

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

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

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

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

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

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

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

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

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

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

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

Represents the method that handles the BeforeLabelEdit and AfterLabelEdit events.

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

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

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

Represents the method that will handle converting a ListControl.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Represents the method that will handle the CellPaint event.

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

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

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

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

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

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

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

Represents the method that will handle events for a ToolStripItem.

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

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

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

Represents the method that will handle ToolStripPanel paint events.

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

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

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

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

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

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

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

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

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

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

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

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

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.

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.