0% found this document useful (0 votes)
136 views9 pages

Windows Forms - Advanced

This document provides an in-depth look at key features in Windows Forms in Visual Studio 2005. The agenda covers ToolStrip Controls, working with data and the DataGridView, BackgroundWorker, TableLayoutPanel, and configuration APIs. Demos are provided for customizing ToolStrips, working with data and the DataGridView, using BackgroundWorker, laying out controls with TableLayoutPanel, and managing client configuration.

Uploaded by

ssaurabh_ss
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views9 pages

Windows Forms - Advanced

This document provides an in-depth look at key features in Windows Forms in Visual Studio 2005. The agenda covers ToolStrip Controls, working with data and the DataGridView, BackgroundWorker, TableLayoutPanel, and configuration APIs. Demos are provided for customizing ToolStrips, working with data and the DataGridView, using BackgroundWorker, laying out controls with TableLayoutPanel, and managing client configuration.

Uploaded by

ssaurabh_ss
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Windows Forms in Visual Studio 2005:

An in-depth look at key features


Name: Joe Stegman
Title: Lead Program Manager
Session code
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
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
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<T>: Generic IBindingList
INotifyPropertyChanged: Simplifies the implementation
of property change notification
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
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
Demo: Client Configuration
Configuration APIs
Support reading/writing user state
Example: Users last opened file
Support reading/writing application state
Example: Application specific data source
connection string
Full designer support
Extensible provider model
8
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
9
2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only.
MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

You might also like