1 / 21

Windows Forms 2.0 – Controls

Windows Forms 2.0 – Controls. Stephen Turner Software Design Engineer sturner@microsoft.com. Windows Forms 2.0 Goals. Bring the ease and reliability of Web application deployment to client applications Professional Look and Feel New controls and enhancements

neal
Télécharger la présentation

Windows Forms 2.0 – Controls

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Windows Forms 2.0 – Controls Stephen Turner Software Design Engineer sturner@microsoft.com

  2. Windows Forms 2.0 Goals • Bring the ease and reliability of Web application deployment to client applications • Professional Look and Feel • New controls and enhancements • Simplify client application development • Simplify working with data • Fewer lines of code • Fewer clicks

  3. Agenda • New Windows Forms 2.0 features • ToolStrip Controls • Web Browser Control • New Layout Controls • New Control Properties • Grab Bag • Roadmap and resources

  4. Building Professional Applications

  5. ToolStrip Controls • Common API for toolbars, menus, drop-down menus, and context menus • ToolStrip, MenuStrip, StatusStrip, ContextMenuStrip • Items inherit from ToolStripItem • Premium design time experience

  6. Item Types ToolStripButton ToolStripMenuItem ToolStripTextBox ToolStripComboBox ToolStripProgressBar ToolStripDropDownButton Item layout options Item overflowing ToolStripContainer Item Customization Persistence ToolStrip Control Features

  7. ToolStrip Control Examples

  8. ToolStrip Control Render Modes • Professional • System • Custom

  9. Using ToolStrip Controls

  10. WebBrowser Control

  11. WebBrowser Control Features • Optimized managed wrapper • Navigation • Managed code and script interaction • Customize standard IE behavior • Context menus • Accelerator keys

  12. Layout Controls - SplitPanel • Replaces Splitter control • Not based on Z-order • Encapsulates a splitter and two panels • Vertical or horizontal orientation

  13. Layout Controls - FlowLayoutPanel • HTML-style flow layout • Automatically repositions children • Horizontal or vertical flow direction • Insertion bars at design time

  14. Layout Controls - TableLayoutPanel • HTML-style table layout • Cell merging for rows and columns • Absolute, percentage, or autosizing columns and rows • “What you see is what you get” (WYSIWYG) Designer

  15. WebBrowser & Layout Controls

  16. Control Properties - Layout • Margin and Padding • Margin - spacing that radiates outwards • Padding - spacing that radiates inwards • Defaults to Windows UI style guidelines • AutoSize • Applies to almost all controls • Resize to accommodate contents • Respects Padding and Margin

  17. Control Properties - AutoComplete • AutoComplete • Automatic text suggestion and completion • Supported by TextBox and ComboBox • System or custom lookup sources

  18. Grab Bag • MaskedTextBox • Controls shape of input • MaskedTextProvider • ToolTip • BubbleMode • Icon and Title

  19. Control Properties

  20. More Information? • Visual Studio 2005 Developer Center • http://msdn.microsoft.com/vs2005 • Download Visual Studio Express Editions for free!

  21. © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

More Related