show current and previous forms

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2007
Posts: 58
Reputation: guest11 is an unknown quantity at this point 
Solved Threads: 2
guest11 guest11 is offline Offline
Junior Poster in Training

show current and previous forms

 
0
  #1
Nov 6th, 2008
I am creating vb appliction in which there are 20 forms i want to create two command buttons named current and previous forms. Can anybody tell me how i can do this ?
I want guide line.

Thanks in advance
regards
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: show current and previous forms

 
0
  #2
Nov 6th, 2008
Hi,

How are the Forms Named..?
You can code, if it is Named Sequential.. Say
Form1, Form2, Form3..

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: show current and previous forms

 
0
  #3
Nov 6th, 2008
Are you going to make that form behaves like a wizard form?
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 58
Reputation: guest11 is an unknown quantity at this point 
Solved Threads: 2
guest11 guest11 is offline Offline
Junior Poster in Training

Re: show current and previous forms

 
0
  #4
Nov 7th, 2008
No forms are not the sequence forms I gave different name to all forms like AdmissionFrm , blockwiseFrm etc
Actuially I have two forms for viewing information and when I select one option from the treeview it opens one form say form blockwiseFrm and when i click other option it opens other form say districtFrm. So when i click districtFrm then i want to see the blockwiseFrm information using Previous button. I make one previous button and store blockwiseFrm in the form object say frm but what is happening is it reloads all data in the blockwise form but i want to see the data which i previously saw there.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: show current and previous forms

 
0
  #5
Nov 7th, 2008
Hi,

Say, you have Populated FirstForm based on some DistrictName/id.. Now, Keep a Global Variable to save that ID, When you load district form, in Formload, check if that ID <> blank/zero, then Re-load the data accordingly...
Other option is not to unload the prev Form, Just Hide it.. :
Me.Hide
And when you want to show it again, Me.Show

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 300
Reputation: jireh is an unknown quantity at this point 
Solved Threads: 42
jireh's Avatar
jireh jireh is offline Offline
Posting Whiz

Re: show current and previous forms

 
0
  #6
Nov 7th, 2008
yEAH! I agree with Qveen, used the hide button then make a global variable that stores the name of the form...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC