Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Simpler VB problem

Thread Tools
 
Search this Thread
 
Old 04 June 2002, 07:45 PM
  #1  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 04 June 2002, 08:41 PM
  #2  
nigelward
Scooby Regular
 
nigelward's Avatar
 
Join Date: Oct 2001
Posts: 831
Likes: 0
Received 0 Likes on 0 Posts
Post

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
Old 04 June 2002, 09:01 PM
  #3  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Its just a form called print it could be called abcd! how do you navigate between forms?

Si
Old 04 June 2002, 09:03 PM
  #4  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks think that'll work
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Abx
Subaru
22
09 January 2016 05:42 PM
PetrolHeadKid
Driving Dynamics
10
05 October 2015 05:19 PM
T.K
General Technical
10
02 October 2015 11:35 AM
the shreksta
Other Marques
26
01 October 2015 02:30 PM
minguela
Wheels And Tyres For Sale
0
29 September 2015 11:28 AM



Quick Reply: Simpler VB problem



All times are GMT +1. The time now is 10:45 PM.