Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code.

Similar presentations


Presentation on theme: "Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code."— Presentation transcript:

1 Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code

2 2 Agenda ToolStrip Controls –Creating Customized, Professional Applications Working with Data and the DataGridView –Binding to business objects BackgroundWorker –Making an application more responsive TableLayoutPanel –Simplifying Localization Configuration APIs –Storing Application and User State Questions

3 3 Demo: Customizing ToolStrips Extensibility Models – Custom “Renderers” “Renderers” control the look and feel of the ToolStrip and ToolStrip Items –Custom Items (ToolStripItem derivation) Extend ToolStrip item types Full designer support for custom ToolStrip items –Control Hosting Host Windows Forms Controls in ToolStrips

4 4 Demo: Data and the DataGridView DataGridView –Flexible, Extensible, Performant Bound, Unbound, Virtual, Mixed Text, Image, Button, Link cells/columns Cell-based not Column-based –Cell styles (Font, Color, Formatting) –Cell-level events »Mouse, Formatting, Validate, Error, Others... BindingSource –Enables design time business object binding New Binding Types –BindingList : Generic IBindingList –INotifyPropertyChanged: Simplifies the implementation of property change notification

5 5 Demo: BackgroundWorker BackgroundWorker –Simplify creating responsive applications Easier to perform long running tasks without “freezing” the UI –Simplify Thread use in Windows Forms applications

6 6 Demo: TableLayoutPanel Layout Controls –TableLayoutPanel Similar to HTML Table control Address localization scenarios Facilitate creation of resizable UI –Support data driven UI (e.g. labels from a DB) –FlowLayoutPanel Child controls “flow” like default HTML layout mode

7 7 Demo: Client Configuration Configuration APIs –Support reading/writing user state Example: User’s last opened file –Support reading/writing application state Example: Application specific data source connection string –Full designer support –Extensible provider model

8 8 Resources: Windows Forms Smart Client on MSDN: –http://msdn.microsoft.com/smartclienthttp://msdn.microsoft.com/smartclient –http://msdn.microsoft.com/smartclient/understanding/windowsformshttp://msdn.microsoft.com/smartclient/understanding/windowsforms –http://msdn.microsoft.com/smartclient/community/wffaq/wf20.aspxhttp://msdn.microsoft.com/smartclient/community/wffaq/wf20.aspx Windows Forms web site: –http://www.windowsforms.nethttp://www.windowsforms.net Beta 1 Samples: –http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49#Whidbey% 20Beta%201http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49#Whidbey% 20Beta%201 Online Discussion Forums: –http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2 –http://msdn.microsoft.com/smartclient/community/discussions/default.aspxhttp://msdn.microsoft.com/smartclient/community/discussions/default.aspx

9 9 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code."

Similar presentations


Ads by Google