943,733 Members | Top Members by Rank

Ad:
Nov 6th, 2008
0

show current and previous forms

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
guest11 is offline Offline
59 posts
since Nov 2007
Nov 6th, 2008
0

Re: show current and previous forms

Hi,

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

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Nov 6th, 2008
0

Re: show current and previous forms

Are you going to make that form behaves like a wizard form?
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007
Nov 7th, 2008
0

Re: show current and previous forms

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.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
guest11 is offline Offline
59 posts
since Nov 2007
Nov 7th, 2008
0

Re: show current and previous forms

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
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Nov 7th, 2008
0

Re: show current and previous forms

yEAH! I agree with Qveen, used the hide button then make a global variable that stores the name of the form...
Reputation Points: 11
Solved Threads: 49
Posting Whiz
jireh is offline Offline
316 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: proxy program using a vb6
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: help me about more coding in SQL code except (SELECT, INSERT, UPDATE & DELETE)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC