
Windows Forms–Related Features
ClickOnce Deployment
ClickOnce deployment allows you to deploy self-updating Windows applications that can be installed and run as easily as Web applications. You can deploy Windows client and command-line applications. There are new Publish Project commands on the Build and Project menus in Visual Studio. For more information, see ClickOnce Deployment Overview.
Application Settings
Application settings for Windows Forms make it easy to create, store, and maintain custom application and user preferences on the client. With Windows Forms settings, you can store not only application data, such as database connection strings, but also user-specific data, such as toolbar positions and most-recently-used lists. For more information, see Application Settings Overview.
New Data-Binding Model
The BindingSource component simplifies the process of data binding because it acts as an intermediary between the bound control and the target data source. It automatically manages many of the more difficult binding issues such as currency, data-related events, and target data source changes. It is also designed to interoperate with other data-related Windows Forms controls, particularly the BindingNavigator and the DataGridView controls. For more information, see BindingSource Component. The BindingSource component simplifies the process of binding controls to an underlying data source. It acts as both a conduit and a data source to which other controls bind.
New Windows Forms Controls
The DataGridView control provides a powerful and flexible way to display data in a tabular format. It can be used to show read-only views of a small amount of data or it can be scaled to show editable views of very large sets of data. The data can reside in an external data source or be added directly to the control. For more information, see DataGridView Control Overview (Windows Forms).
ToolStrip controls are toolbars that can host menus, controls, and user controls in your Windows Forms applications. The ToolStrip class and its associated classes enable you to create toolbars and other user interface elements in a style that is consistent with Microsoft Windows XP, Microsoft Office, and Microsoft Internet Explorer. You can also use these classes to customize toolbars and user interface elements. For more information, see ToolStrip Control Overview (Windows Forms).
The MaskedTextBox control uses a mask definition to distinguish between valid and invalid user input. For more information, see MaskedTextBox Control (Windows Forms).
The Windows Forms SoundPlayer class enables you to easily include sounds in your applications. The SoundPlayer class can play sound files in the .wav format, either from a resource or from Universal Naming Conventions (UNC) or HTTP locations. Additionally, the SoundPlayer class enables you to load or play sounds asynchronously. For more information, see SoundPlayer Class.
The Windows Forms SplitContainer control can be thought of as a composite; it is two panels separated by a movable bar. When the mouse pointer hovers over the bar, the cursor changes to show that the bar is movable. Use this control to create complex, resizable user interfaces that are effective for displaying and browsing information. For more information, see SplitContainer Control.
The ListView control now supports three features provided by Windows XP and the Windows Server 2003 family: tile view, grouping, and drag-and-drop item repositioning.
The ListView, TreeView, and ToolTip controls now support owner drawing functionality similar to the owner drawing support for the ComboBox, ListBox, MenuItem, and TabControl controls in the previous release.
The WebBrowser control lets you host Web pages in your Windows Forms applications. You can use the WebBrowser control to provide integrated HTML-based Help or Internet Web browsing capabilities in your application. Additionally, you can use the WebBrowser control to convert existing Web applications to client applications that seamlessly integrate dynamic HTML (DHTML) code with the user interface capabilities of Windows Forms. For more information, see WebBrowser Control Overview.
The FlowLayoutPanel control arranges its contents in a horizontal or vertical flow direction. The TableLayoutPanel control arranges its contents in a grid. Because the layout is performed both at design time and run time, it can change dynamically as the application environment changes. For more information, see FlowLayoutPanel Control Overview and TableLayoutPanel Control Overview.
The BackgroundWorker component enables you to perform operations in the background that can take a long time to execute, such as image downloads and database transactions. For more information, see BackgroundWorker Component Overview.
The Asynchronous Pattern for Components is an event-driven model that provides the advantages of multithreaded applications while hiding many of the complex issues inherent in multithreaded design. For more information, see Asynchronous Pattern for Components.