Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Forms: Harnessing The Power And Flexibility Of Windows Forms 2.0 Erick Ellis PRS402 Program Manager.NET Client Microsoft Corporation.

Similar presentations


Presentation on theme: "Windows Forms: Harnessing The Power And Flexibility Of Windows Forms 2.0 Erick Ellis PRS402 Program Manager.NET Client Microsoft Corporation."— Presentation transcript:

1 Windows Forms: Harnessing The Power And Flexibility Of Windows Forms 2.0 Erick Ellis PRS402 Program Manager.NET Client Microsoft Corporation

2 Agenda ToolStrips Custom renderers, colors, items DataGridView Custom painting, formatting, column types BackgroundWorker Cancellation, progress updates, responsive UI TableLayoutPanel Dynamic layout, content Questions

3 ToolStrips Replaces MainMenu, ContextMenu, ToolBar and StatusBar HWNDless architecture Same OM across all containers System and professional renderers ToolStripControlHost

4 Toolstrips Custom Color Tables Custom Renderers Custom ToolStripItem

5 Datagridview Replaces DataGrid Extensible and Flexible Bound, Unbound, Virtual, Mixed Eleventy billion PMEs Text, Image, Button, Link cells/columns Cell-based, not Column-based Cell styles (Font, Color, Formatting) Cell-level events Mouse, Formatting, Validate, Error, others... Custom Column Types High performance Display, scrolling, updates

6 DataGridView Custom Styles and Colors Custom Styles and Colors Custom Formatting Custom Formatting Custom Painting Custom Painting Custom Column Types Custom Column Types

7 Backgroundworker BackgroundWorker Simplify creating responsive applications Easier to perform long running tasks without “freezing” the UI Simplify Thread use in Windows Forms applications

8 BackgroundWorker Cancellation Cancellation Progress Reporting Progress Reporting

9 Automatically acquired ThreadPool Thread no UI updates allowed… UI Thread DoWork(){ If (!CancellationPending){ If (!CancellationPending){ FindInFiles() FindInFiles() }} StartFindInFiles() ProgressChanged(){ Update UI Update UI} RunWorkerCompleted() EndFindInFiles() RunWorkerAsync() ReportProgress() Diagram: BackgroundWorker

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

11 TableLayoutPanel Anchor Anchor AutoSize/AutoSizeMode AutoSize/AutoSizeMode Column & Row Styles Column & Row Styles

12 Diagram: Login Dialog Equal %, preserve minimum size, lower right alignment Only occupy necessary space Right aligned, Grow/Shrink to accommodate label length AutoScaleRightToLeft Font Changes DPI Changes

13 Summary Windows Forms in Visual Studio 2005 make it easier to build professional looking, professional behaving applications. Install Visual Studio 2005 Today http://lab.msdn.microsoft.com/vs2005 /Default.aspx http://lab.msdn.microsoft.com/vs2005 /Default.aspx

14 Resources: Windows Forms Smart Client on MSDN http://msdn.microsoft.com/smartclient http://msdn.microsoft.com/smartclient/understanding /windowsforms 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#Wh idbey%20Beta%201 http://www.windowsforms.net/Default.aspx?tabindex=4&tabid=49#Wh idbey%20Beta%201 Online Discussion Forums http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2 http://msdn.microsoft.com/smartclient/community/discussions /default.aspx http://msdn.microsoft.com/smartclient/community/discussions /default.aspx

15 Community Resources At PDC For more information, go see PRS402 Windows Forms: Harnessing the Power and Flexibility of Windows Forms 2.0 (Tue 1:00 and 4:15pm) PRS407 Windows Forms: Occasionally Connected Smart Clients (Wed 11:00 am) PRS321 Windows Forms: Integrating Windows Forms and Windows Presentation Foundation ("Avalon") (Thur 11:30am) FUN222 Windows Vista: What’s New in Software Installation for Windows Vista: Exploring the Windows Installer (MSI) and ClickOnce Options (Fri 1:00 pm) Labs FUNHOL15 ClickOnce Deployment PRSHOL17 New UI Features in Windows Forms PRSHOL18 New Data Features in Windows Forms PRSHOL19 Windows Forms: Advanced Layout Ask The Experts After PDC MSDN dev center: http://msdn.microsoft.com/windowsforms/ http://msdn.microsoft.com/windowsforms/ MSDN Forums: http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2 http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2

16 Your Feedback Is Important!

17 © 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: Harnessing The Power And Flexibility Of Windows Forms 2.0 Erick Ellis PRS402 Program Manager.NET Client Microsoft Corporation."

Similar presentations


Ads by Google