Mike Harsh PRSL001 Program Manager Microsoft Corporation

Slides:



Advertisements
Similar presentations
1 Visual Basic.NET Application Overview. 2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated.
Advertisements

Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Mike Henderlight Title: Program Manager.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation.
Windows Forms in Visual Studio 2005: An Overview Saurabh Pant Program Manager Microsoft Corporation.
1 Developing Rules Driven Workflows in Windows Workflow Foundation Jurgen Willis COM318 Program Manager Microsoft Corporation.
Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft DEV201 #auteched #dev201.
Using the Actions Pane, Host Controls, and Smart Tags
Exploiting New Capabilities for Search And Organization Kerem Karatal DAT307 Lead Program Manager Microsoft Corporation.
Windows Forms: Harnessing The Power And Flexibility Of Windows Forms 2.0 Erick Ellis PRS402 Program Manager.NET Client Microsoft Corporation.
Understand what kind of applications Windows Presentation Foundation can deliver See how Visual Studio 2008 & Microsoft Expression Blend work together.
Tony Goodhew Product Planner DEV328.
Tips & Tricks: Extending MSBuild with Tasks, Loggers, and Targets Faisal Mohamood TLNL01 Program Manager - MSBuild Microsoft Corporation.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Name Microsoft Student Partner Overview of the Visual Studio 2005 Express Products.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant.
Lap Around Windows Presentation Foundation Rob Relyea PRS305 Lead Program Manager Windows Presentation Foundation
Windows Forms in Visual Studio 2005: An in-depth look at key features Name: Joe Stegman Title: Lead Program Manager Session code.
EBIZ302 Jupiter Business Process Automation and Web Services David Fong Program Manager.
Microsoft Visual Studio 2005 Tools for the Office System: Building Office Solutions Using Visual Studio 2005 Tools for Office Andrew Coates Developer Evangelist.
DEV221 Windows Forms in Visual Studio 2005: An Overview Saurabh Pant Program Manager Microsoft Corporation.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Demand Management and Workflow
Windows Azure Jeffrey Ferman Program Manager 3-006
2010 Microsoft BI Conference
Jim Nakashima Program Manager – Cloud Tools Microsoft Corporation
Get Typed with TypeScript!
How to Build a Complete Office Add-in Solution
Avalon – Using Data In Your Applications
Developing Drivers in Visual Studio
8/3/2018 7:11 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Manual testing of Windows Metro style apps built using HTML
TechEd /13/2018 7:46 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Tech·Ed North America /14/2018 7:13 PM
App Feedback Stuart Hargreaves, Chris Tulip Microsoft Build 2016
What’s New in Accessibility (for Developers and Users)
Reaching more customers with accessible Metro style apps using HTML5
Introduction to mobile app development Module 3 – Improving your App Studio app Lance McCarthy.
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Tech Ed North America /27/ :47 PM Required Slide
Super Charge Your Debugging in Visual Studio
Tech·Ed North America /7/2018 2:51 PM
Learn how to make SharePoint Accessible and Inclusive
Team Foundation Server 2010 for Everyone
12/9/ :15 AM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Customizing WPA Trace Views
Tech Ed 2004 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express.
Tech Ed North America /1/ :36 AM Required Slide
Jim Nakashima Program Manager Cloud Tools
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Jochen Seemann Program Manager Enterprise Tools Microsoft Corporation
Introduction to the new WPA user interface
Visual Studio 2010 SharePoint Development Tools Overview
Build data-driven collection and list apps using ListView in HTML5
Getting started with SharePoint Framework
Microsoft Connect /23/ :38 AM
Tips and Tricks for Making Web Forms Shine with Microsoft ASP.NET 4
Delivering great hardware solutions for Windows
4/28/2019 6:13 PM HW-889P Advanced driver code analysis techniques Tips and tricks to develop more secure & reliable drivers Dave Sielaff Principal Software.
Under the hood: Installation and updates for Metro style apps
Leveraging existing code in Metro style apps
DEV322 Visual Studio 2005 C# IDE Enhancements
Microsoft Dynamics.
Windows Forms in Visual Studio 2005: An in-depth look at key features
Windows Forms in Visual Studio 2005: An Overview
Mark Quirk Head of Technology Developer & Platform Group
TechEd /12/ :12 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
9/24/2019 5:31 PM ©2005 Microsoft Corporation. All rights reserved.
Contexualized Data In Document Authoring
Presentation transcript:

Mike Harsh PRSL001 Program Manager Microsoft Corporation Tips and Tricks: Answers to Common Questions when Building Windows Forms Applications Mike Harsh PRSL001 Program Manager Microsoft Corporation ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Agenda 5 real world customer questions and solutions Questions 1/5/2018 12:20 AM Agenda 5 real world customer questions and solutions TabControl with tabs on bottom Docking confusion Read-only ComboBox Tracking the true visibility of a control in a container DataBinding DateTimePicker to null Questions ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Non-Top Aligned Tabs Visual styles and TabControl Alignment 1/5/2018 12:20 AM Non-Top Aligned Tabs Visual styles and TabControl Alignment ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Non-Top Aligned Tabs The problem 1/5/2018 12:20 AM Non-Top Aligned Tabs The problem ComCtl v6 doesn’t implement other alignments Visual styles disabled Visual styles enabled ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Non-Top Aligned Tabs The Solution 1/5/2018 12:20 AM Non-Top Aligned Tabs The Solution Draw the TabControl UI in code Set ControlStyles.UserDraw to true ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Docking Confusion What order are controls docked in? 1/5/2018 12:20 AM Docking Confusion What order are controls docked in? ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Docking Confusion The problem 1/5/2018 12:20 AM Docking Confusion The problem Controls are docked based on their order in the Controls collection This is known as Z-order Docking issues due to Z-order can be tough to debug by looking at the designer ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Docking Confusion The Solution 1/5/2018 12:20 AM Docking Confusion The Solution Use the new Document Outline window in Visual Studio Ctrl+alt+t in the standard profile ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

ReadOnly ComboBox 1/5/2018 12:20 AM ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

ReadOnly ComboBox The problem 1/5/2018 12:20 AM ReadOnly ComboBox The problem ComboBox doesn’t support the concept of readonly Workaround of disabling the control doesn’t allow selection of text ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

ReadOnly ComboBox The Solution 1/5/2018 12:20 AM ReadOnly ComboBox The Solution Implement a ReadOnly property on a ComboBox subclass Create a text field and a disabled button to place over the ComboBox ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Tracking The True Visibility Of A Control In A Container 1/5/2018 12:20 AM Tracking The True Visibility Of A Control In A Container ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

True Control Visibility The problem 1/5/2018 12:20 AM True Control Visibility The problem Visible property always returns the correct state. VisibleChanged is only raised when the Visible property of the control is modified It’s not raised when a control’s parent’s Visible property is set to false ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

True Control Visibility The Solution 1/5/2018 12:20 AM True Control Visibility The Solution Create a component that listens for all visibility changes and notifies a control when it is no longer on the screen Uses a window hook on the thread and listen for the WM_SHOWWINDOW and WM_WINDOWPOSCHANGING messages Users register a handler for a control visibility change ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataBinding DateTimePicker Null support for DateTimePicker 1/5/2018 12:20 AM DataBinding DateTimePicker Null support for DateTimePicker ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataBinding DateTimePicker The problem 1/5/2018 12:20 AM DataBinding DateTimePicker The problem DateTimePicker has no UI for displaying NULL DateTimePicker’s Value property is a DateTime You cannot set NULL to a value type Early bound compile error Late bound exception DataBinding infrastructure catches the exception, but doesn’t set the value ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

DataBinding DateTimePicker The Solution 1/5/2018 12:20 AM DataBinding DateTimePicker The Solution Create a control that extends DateTimePicker and adds a Nullable<DateTime> property Use the DateTimePicker’s check box as the null UI Bind to the new property instead ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Summary 5 real world customer questions and solutions 1/5/2018 12:20 AM Summary 5 real world customer questions and solutions TabControl with tabs on bottom Docking confusion Read-only ComboBox Tracking the true visibility of a control in a container DataBinding DateTimePicker to null ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Community Resources At PDC After PDC 1/5/2018 12:20 AM Community Resources At PDC Interesting in helping with Visual Studio and Developer Platform’s future planning?  Sign up at the Tools and Language Track Lounge to attend a focus group. For more information, go see 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 1pm) Labs FUNHOL15 ClickOnce Deployment PRSHOL17 New UI Features in Windows Forms PRSHOL18 New Data Features in Windows Forms PRSHOL19 Windows Forms: Advanced Layout The Windows Forms table in the Presentation track lounge Ask The Experts After PDC MSDN dev center: http://msdn.microsoft.com/windowsforms/ MSDN Forums: http://forums.microsoft.com/msdn/default.aspx?ForumGroupID=2 ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

© 2005 Microsoft Corporation. All rights reserved. 1/5/2018 12:20 AM © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Richtextbox With A Visual Style Border 1/5/2018 12:20 AM Richtextbox With A Visual Style Border ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

Flashing A Window In The Taskbar 1/5/2018 12:20 AM Flashing A Window In The Taskbar ©2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.