Presentation is loading. Please wait.

Presentation is loading. Please wait.

Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft.

Similar presentations


Presentation on theme: "Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft."— Presentation transcript:

1

2 Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft

3 Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment

4 Session Prerequisites Experience with Visual Basic ® 6.0, Visual Basic.NET, Visual C# ™ or Visual C++ ® Experience with Visual Basic ® 6.0, Visual Basic.NET, Visual C# ™ or Visual C++ ® Experience developing Desktop Applications Experience developing Desktop Applications

5 Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment

6 Windows Forms Introduction A framework for building Windows applications that takes advantage of all the power of.NET Framework and the Win32 ® API A framework for building Windows applications that takes advantage of all the power of.NET Framework and the Win32 ® API An architecture for controls and containers An architecture for controls and containers RAD design time experience - integrated designer support RAD design time experience - integrated designer support .NET Framework built with design-time in mind  Design-time built using.NET Framework: Visual Studio ®.NET Property Browser, Server Explorer, Windows Forms Designer No more hiding of Form Designer Code No more hiding of Form Designer Code

7 Windows Forms Docking and Anchoring Anchoring Anchoring  When a Form is resized the controls on the form automatically resize and maintain position  Allows you to anchor against  Top and Left, Top and Right, All Corners, Etc. Docking Docking  Allows you to set the side of it’s container a control is attached to

8 Windows Forms Inheritance Allows you to create one form based on the properties, etc of another Allows you to create one form based on the properties, etc of another Ability to Add Inherited forms within the designer Ability to Add Inherited forms within the designer  Allows you to pick the form from which you want to inherit Can specify a form in code Can specify a form in code  public class Form2 : winapp2.Form1

9 Building Windows Forms Applications Demonstration #1

10 Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment

11 Graphical Enhancements Features Rich set of controls Rich set of controls Advanced graphics support – GDI+ Advanced graphics support – GDI+  Transparency  Non-Rectangular Windows Supports both Flat (Office XP) and 3D style control styles Supports both Flat (Office XP) and 3D style control styles Advanced layout Advanced layout Printing support Printing support Extensible: Extensible:  Extend and enhance controls and framework  Easy to add design time behavior  Drop into Win32

12 Using GDI+ from Visual Basic.NET Demonstration #2

13 Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment

14 Browser Integration Basics Create the Windows Forms Controls Create the Windows Forms Controls Create an HTML document with an tag Create an HTML document with an tag   Create the Virtual Directory and Set Permissions Create the Virtual Directory and Set Permissions

15 Browser Integration Smart Client “No Touch” deployment “No Touch” deployment  Application isolation is the default  No registration required  Versioning – no side effects  Web-based deployment Secure Secure  Safe to run downloaded code

16 Browser Integration Security Code access security makes Windows Forms controls safe Code access security makes Windows Forms controls safe Execution controlled by: Execution controlled by:  Permissions  Permission Sets  Code Groups (Zones)  Code groups have permission sets

17 Browser Integration Hosting Controls Controls can be hosted Internet Explorer 5.5 or above Controls can be hosted Internet Explorer 5.5 or above Low impact Low impact  No installation, registration or GUIDs Secure Secure  Code access security prevents harm  No Internet Explorer security dialogs! Lightweight Lightweight  “Hello World” ~ 3.5K Easily deployed Easily deployed  Dependent components download automatically

18 Browser Integration Controls in the Browser Web Server Assembly Cache HTTPChart.htmlChartEngine.DLL Customizer.DLL Client HTTP Internet Explorer 5.5 Charting.DLL

19 Controls in the Browser Demonstration #3

20 Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment

21 Auto-Deployment Smart Client Dependent components download automatically Dependent components download automatically  Application “trickles” onto the client No installation No installation  Use Assembly.LoadFrom Stored in the Download cache Stored in the Download cache  Only downloaded when updated

22 Auto Deployment Web Server Assembly Cache HTTP Smart Client Windows Forms App Form1 Form2

23 Auto-Deployment Demonstration #4

24 Session Summary Windows Forms controls are secure, lightweight, and support hosting on Web pages Windows Forms controls are secure, lightweight, and support hosting on Web pages Windows Forms applications are easy to write and deploy Windows Forms applications are easy to write and deploy

25


Download ppt "Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft."

Similar presentations


Ads by Google