Creating a Class Library Application
To create your new component, start Visual Studio .NET and create a new Class Library application called myComponent_vb or myComponent_cs, depending on what language you're writing in.
In the myComponent application, you're going to write simple methods and properties that are exposed to consumers of the component. You are also going to create a namespace for your component. By default, the namespace name is normally the name of the application. You're going to change this to implement your own namespace.
To implement the functionality of your component, type the code in Listing 14.3 in the default Class1 class that's added to the Class Library application.
As you're entering the code, read the comments for ...
Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.