Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
20Activity
0 of .
Results for:
No results containing your search query
P. 1
VB.net - Module 9_Developing Components in Visual Basic .NET

VB.net - Module 9_Developing Components in Visual Basic .NET

Ratings:

4.0

(1)
|Views: 294|Likes:
Published by manis0249228

More info:

Published by: manis0249228 on Jul 27, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
 
Contents
Overview 1Components Overview 2Creating Serviced Components 11Demonstration: Creating a ServicedComponent 27Lab 9.1: Creating a Serviced Component 28Creating Component Classes 35Demonstration: Creating a StopwatchComponent 40Creating Windows Forms Controls 41Demonstration: Creating an EnhancedTextBox 48Creating Web Forms User Controls 49Demonstration: Creating a Simple WebForms User Control 53Lab 9.2: Creating a Web Forms UserControl 54Threading 60Demonstration: Using the SyncLockStatement 73Review 74
Module 9: DevelopingComponents in VisualBasic .NET
This course is based on the prerelease version (Beta 2) of Microsoft® Visual Studio® .NET  Enterprise Edition. Content in the final release of the course may be different from thecontent included in this prerelease version. All labs in the course are to be completed withthe Beta 2 version of Visual Studio .NET Enterprise Edition.
 
 
Information in this document, including URL and other Internet Web site references, is subject tochange without notice. Unless otherwise noted, the example companies, organizations, products,domain names, e-mail addresses, logos, people, places and events depicted herein are fictitious,and no association with any real company, organization, product, domain name, e-mail address,logo, person, place or event is intended or should be inferred. Complying with all applicablecopyright laws is the responsibility of the user. Without limiting the rights under copyright, no partof this document may be reproduced, stored in or introduced into a retrieval system, or transmittedin any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), orfor any purpose, without the express written permission of Microsoft Corporation.Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectualproperty rights covering subject matter in this document. Except as expressly provided in anywritten license agreement from Microsoft, the furnishing of this document does not give you anylicense to these patents, trademarks, copyrights, or other intellectual property.© 2001 Microsoft Corporation. All rights reserved.Microsoft, MS-DOS, Windows, Windows NT, ActiveX, BizTalk, FrontPage, IntelliSense, JScript,Microsoft Press, Outlook, PowerPoint, Visio, Visual Basic, Visual C++, Visual C#, VisualInterDev, Visual Studio, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.The names of actual companies and products mentioned herein may be the trademarks of theirrespective owners.
 
Module 9: Developing Components in Visual Basic .NET iii
Instructor Notes
This module provides students with the knowledge required to create and usedifferent types of components by using Microsoft
®
Visual Basic
®
.NET.
 
In the first lab, students will create a serviced component that retrievescustomer information based on the customer’s e-mail address and password.The assembly is installed in the Global Assembly Cache (GAC) to avoid apotential bug in Beta 2. This bug does not allow server-activated applications tobe called successfully without being installed in the GAC. Students will registerthis component with Component Services and set constructor string propertiesof the component by using the Component Services console. They will then testthe serviced component with a simple Windows-based application.In the second lab, students will create a Web user control that requests logoninformation from a customer. They will place the user control on a Web Formand use the serviced component that they created in the first lab to retrieve thecustomer information so that it can be displayed on a welcome screen.After completing this module, students will be able to:
n
 
Describe the different types of components that they can create inVisual Basic .NET.
n
 
Create components that can be used by managed and unmanaged clientapplications.
n
 
Create serviced components.
n
 
Create component classes.
n
 
Create Microsoft Windows
®
Forms controls.
n
 
Create Web Forms user controls.
n
 
Use threading to create multithreaded applications.
Presentation:90 MinutesLabs:90 Minutes

Activity (20)

You've already reviewed this. Edit your review.
1 hundred reads
s@nj@y liked this
Ardrick Bosco liked this
vkrm14 liked this
min88 liked this
vijaybpujari liked this
jacqulinegeorge liked this
bk_yogesh123 liked this
Leonardo liked this
peterangka liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->