[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
vbwizard
VB 6.0 allows you to create wizard style applications. A wizard is nothing but a form which has buttons like Next, Back, Cancel, Finish, etc. It is mainly used for getting useful data from the user. For e.g. the Resume Wizard in MS Word.

We have to use the VB Wizard Manager which you can find in the New Project dialog box which pops up when you want to create a new project. If you have a blank project it will prompt you to create a new project (prjWizard) with default forms (frmWizard and frmConfirm) already loaded for you. Also loaded are resource files, and designers. The vb wizard manager allows you to create the basic framework for your wizard.

The principle used in making a wizard application goes like this: you have a one form (frmWizard) on which you have buttons next, back, cancel, help and finish. You have several frames (corresponding to the total number of steps). During design time you are required to draw necessary controls on one frame (considering one step each at a time). To design the second step we must hide the first step from view, adjust the frame size, and then work on the second step, and so on...During run-time we make the correct frame appear visible and hide all the other frames. This way the user won't be able to access the other controls (which are not in the current) as they are rendered inactive when making the corresponding invisible.

This becomes a tedious task for the programmer. Hence this is where the VB Wizard Manager comes to the rescue. By default you have about five/four steps loaded. Easy navigation at design time is made possible due to the Wizard Manager window. Double clicking on a step brings that step to the programmers view and hides the rest. The frames are all automatically sized; all the programmer has to do is draw controls onto the frame. This has to be done manually otherwise your control won't appear on the frame. Apart form all this the wizard manager totally manages your wizard steps. You can add, insert, delete, and arrange steps however you need.

Lets say that in one session you have built half of the user inferface. In the next session when you load the project you might not see the wizard manager window. If this is the case then click on Tools>>Add-in manager and select the VB Wizard Manager in the dialog that follows. If you want it loaded on start up, check mark the corresponding boxes and click OK.

last edited (May 24, 2006) by deostroll, Number of views: 1583, Current Rev: 2 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.