Download presentation
Presentation is loading. Please wait.
Published byBrent Rodgers Modified over 9 years ago
1
Create Windows ® Applications with.NET Carlotta Eaton (www.nr.vccs.edu/eaton) Associate Professor of IST New River Community College Slides by Microsoft Modified by Carlotta Eaton
2
Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment
3
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 Level 200
4
Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment
5
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
6
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
7
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
8
Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment
9
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
10
Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment
11
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
12
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
13
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
14
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
15
Browser Integration Controls in the Browser Web Server Assembly Cache HTTPChart.htmlChartEngine.DLL Customizer.DLL Client HTTP Internet Explorer 5.5 Charting.DLL
16
Agenda Windows Forms Overview Windows Forms Overview Graphical Enhancements Graphical Enhancements Browser Integration Browser Integration Auto-Deployment Auto-Deployment
17
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
18
Auto Deployment Web Server Assembly Cache HTTP Smart Client Windows Forms App Form1 Form2
19
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
20
For More Information… MSDN Web site at MSDN Web site at msdn.microsoft.com Microsoft ® Official Curricula (MOC) Microsoft ® Official Curricula (MOC) Course 2350 Securing and Deploying.NET Assemblies Course 2145 Programming the.NET Framework with Visual Basic.NET Microsoft Press ® Microsoft Press ® Introduction to the.NET Framework
21
MSDN Essential Resources for Developers Training & Events MSDN Training, Tech-Ed, PDC, Developer Days, MSDN/Onsite Events Subscription Services Online Information Membership Programs Print Publications Library, Professional, Universal Delivered via CD-ROM, DVD, Web MSDN Online, MSDN Flash MSDN User Groups MSDN Magazine MSDN News
22
Building Windows Forms Applications
23
Questions And Answers
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.