Simpler VB problem
#1
Scooby Regular
Thread Starter
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes
on
0 Posts
Right, changing from one Form to another
say im on main form and want th change to print.frm
i used to to
main.hide
print.show
my mates said Load/Unload everytime is better but how?
Cheers
Si
say im on main form and want th change to print.frm
i used to to
main.hide
print.show
my mates said Load/Unload everytime is better but how?
Cheers
Si
#2
Depends what you are doing, must admit I haven't seen an application that hides or unloads the main form to show a Print window (especially if it is printing that data that was entered on the main form).
It is possible but unload and hide behave differently:
Unloading a form will loose any data that has been entered by the user and the form is removed from memory.
Hiding the form leaves the information intact and the form remains in memory.
In the main form the code would be:
print.show
unload me
In the print form the code would be:
main.show
unload me
Nigel
It is possible but unload and hide behave differently:
Unloading a form will loose any data that has been entered by the user and the form is removed from memory.
Hiding the form leaves the information intact and the form remains in memory.
In the main form the code would be:
print.show
unload me
In the print form the code would be:
main.show
unload me
Nigel
Thread
Thread Starter
Forum
Replies
Last Post