Creating an Add New Item Wizard
Here are the basic steps for creating a wizard:
1. Create a new class library project; in this project, create a new class that implements the IDTWizard interface.
2. In the wizard class, write the code in the Execute method to perform the wizard’s tasks and display its UI.
3. Create a .vsz file for the wizard.
4. Create or edit a .vsdir file to reference the new wizard and the .vsz file.
To solidify these concepts, let’s look at them in action. We follow the development of a wizard from start to finish. In this case, the wizard is a C# Add Item Wizard. Its purpose is to collect some basic data from the user and then create a Tools Options page class (much like you manually did earlier in the chapter) that has ...
Get Microsoft® Visual Studio® 2010 Unleashed 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.