O'Reilly logo

Visual Basic 2010 Unleashed by Alessandro Del Sole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exporting Item Templates

You can export single items, such as classes or controls, to item templates that you can later add to other projects. To provide an example, add a new class to the current project and name it as DisposableClass.vb. The goal of the example is to provide a template for classes implementing the IDisposable interface. When ready, simply implement the IDisposable interface in the new class so that Visual Studio will add required members. (You should write custom code for implementing the Disposable pattern, but this is not the goal of the example; see Chapter 8, “Managing an Object’s Lifetime,” about this.) Now select again File, Export Template. In the first dialog of the wizard, select the Item Template option (as shown ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required