We help IT Professionals succeed at work.

VB6 and VB Wizard Manager

Medium Priority
820 Views
Last Modified: 2013-12-03
I have written an application using VB6 and I want to add the following functionality.

When the user selects a menu option a form/dialog is displayed that takes the user through a series of steps/screens (by the user press a next button). Each screen should display a piece of information such as a date or a list, the user would then need to set the information on each screen before being given the  option to move on using the next button. (the user should be able to go backwards and forwards using the ‘next’ and ‘previous’ buttons in order to modify the selections).

I have been looking at the ‘VB Wizard Manager’ this does exactly what I want, but it produces a lot of code I don’t really need and it can only be created as a separate project.

1) Can I integrate the ‘VB Wizard Manager’ functionality into my current project.

2 ) Is there a cleaner way of achieving the above…?


Thanks Ian
Ian
Comment
Watch Question

Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
We usually create our own wizards consisting of a single form with a Frame representing each step in the wizard. Putting the frames into a controls collection makes it easy to navigate backwards and forward.

You have a standard set of navigation buttons at the bottom. The you simply need to code the logic to validate each frames contents and show/hide the frames.

Hope this helps.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
ISC

Author

Commented:
carl tawn,

I think this is exactly what I need to do. I will give it a try.

Thanks Ian
I agree with carl, however rather than use a Frame I always specify a tab control with each page representing a step within the wizard.

Good luck :)
Carl TawnSenior Systems and Integration Developer
CERTIFIED EXPERT

Commented:
I do sometimes. But if i'm thinking of the same tab control as you are then the controls you draw on a tab don't actually belong th the tab. So as you change tabs the first set of controls remain visible and you still have to show and hide them manually.
ISC

Author

Commented:
carl_tawn,

Do you have the code where you put the frames into the controls collection...?

Thanks Ian
Carl TawnSenior Systems and Integration Developer
CERTIFIED EXPERT

Commented:
I normally just create a control array for the frames. You do this by giving each frame the same name. Do this in design view and the IDE will ask if you want to create a control array.
ISC

Author

Commented:
Many thanks I understand...
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.