Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a back button

Status
Not open for further replies.

mmelvin420

Programmer
Sep 28, 2004
2
0
0
CA
Ho do you make a reset or back button in a choose your own adventure type of program in visual basic 5
 
What do you mean by "choose your own adventure"? Are you referring to wizard-type forms?

Andy
"Logic is invincible because in order to combat logic it is necessary to use logic." -- Pierre Boutroux
 
If you want to go back, then I guess the first question is how are you going forward?

-Sean
 
I understand now, what i'm doing is making a command buttons with labels and when you click a command button the next set of buttons and labels shows up with the visible thing, all I have to do is make seperate command buttons that kind of undo the last command by making the last buttons invisible and by makeing the prevous buttons visible.
 
You can store the previous state in many ways, depending on how many levels of undo that you want. For a few levels you may consider Form level or Global variables as appropriate. You could also use the registry (SaveSettings and GetSettings). If you're looking at many levels of undo, or lots of controls you may want to look at using an MDB or XML file solution

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
what I do is simply call the first form to be visible and unload the second form all in the same click.. :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top