Search

Browse by Category
 
 
Hide Left Column
< Return to Safari Guides Main Page

Safari Guides

Topic: .NET

Understanding wizards in Visual Studio .NET

Wizard is the generic name for the VS.NET facilities for creating new projects or items. Each of the project types listed in the New Project (Ctrl-Shift-N) and Add Project dialogs is a wizard, as are each of the items in the Add New Item dialog (Ctrl-Shift-A). Some wizards do nothing more complex than creating a new file, but the more advanced ones create several files and may even present a user interface to allow the user to configure the way in which the files are created. However, all wizards are based on the same underlying mechanisms.

Cover GraphicFor a primer on using wizards in Visual Studio .NET, read Section 9.1 of Mastering Visual Studio .NET from O'Reilly Media.

The Execute method is where all the processing for a wizard takes place. Within this method, a wizard has complete control over how it performs its work. Visual Studio .NET places no restrictions on how a wizard is implemented other than that it must implement the IDTWizard interface on a COM object. A wizard can display a user interface to ask the user questions, or it can use the information provided through the various arguments of the Execute method to perform its work. You can think of the Execute method as similar to the Main function of a Visual Basic or Visual C# console application: once called, it can do whatever it wants.

Cover GraphicLearn how to create the wizard object in the "Creating the Wizard Object" Section in Chapter 9 of Inside Microsoft Visual Studio .NET 2003 from Microsoft Press.


Company | Terms of Service | Privacy Policy | Contact Us | Help | 508 Compliance
Copyright © 30-N Safari Books Online. All rights reserved.