Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Mike Henderlight Title: Program Manager
Agenda ToolStrip Controls Working with Data and the DataGridView 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
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
Demo: Data and the 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<T>: Generic IBindingList INotifyPropertyChanged: Simplifies the implementation of property change notification
Demo: BackgroundWorker Simplify creating responsive applications Easier to perform long running tasks without “freezing” the UI Simplify Thread use in Windows Forms applications
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
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
Resources: Windows Forms Smart Client on MSDN: http://msdn.microsoft.com/smartclient http://msdn.microsoft.com/smartclient/understanding/windowsforms http://msdn.microsoft.com/smartclient/community/wffaq/wf20.aspx Windows Forms web site: http://www.windowsforms.net Beta 1 Samples: http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49#Whidbey%20Beta%201 Online Discussion Forums: http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2 http://msdn.microsoft.com/smartclient/community/discussions/default.aspx Visual Studio Tools for Office Version 2003 Benefits Enables the development of document-centric solutions with managed code Access to the .NET Framework (e.g. support for Web Services, ADO.NET, etc) Advantages with regard to VBA Professional developer tool : Visual Studio .NET 2003 Security model: .NET Code Access Security Deployment model: No-touch deployment Visual Studio Tools for Office Version 2005 Major focus on developer productivity Integrated design-time experience Support for managed controls “View” controls Managed Document Actions task pane Schema-based programming model New data caching capabilities Data island accessible in a server environment Improved deployment model Online ClickOnce deployment model
Windows Forms in Visual Studio 2005 Summary ClickOnce Bring the ease and reliability of Web application deployment to client apps Windows Forms in Visual Studio 2005 Easier to build professional looking applications The designer simplifies application development Download and Install Visual Studio 2005 Today http://lab.msdn.microsoft.com/vs2005/Default.aspx When you develop a client app, there are a lot of advantages. You get to take advantage of the cpu, video card and the hard rive. You shouldn’t have to make a decision about deployment. It shouldn’t be easier to deploy a web app than a client app. So we made this a key goal and we’ve done a lot of work to make it as easy to deploy a client app as a web app. I’m going to show a demo of this. We took a look to find where we had deficiencies in our control set. We added a few new controls and I’ll demo those also. Also, we’ve made improvements in databinding. We’ve done a lot of work to make it easier to build data bound applications in the IDE. This will also be demos
© 2005 Microsoft Corporation. All rights reserved © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.