469,903 Members | 1,503 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

One form open at a time and close others

Dear Sir/Madam,

I am new vb 6.0 user. I am developing Shop Management Program. I have a main form with buttons and menus. when i click any button then respective form is open. I want to set a command by which when i click a button then respective form will open and when i click another button then previous opened form will close and new form will open. that means at a time only one form will active with the main form. Please note that i dont used any midi or child form. All are general form including main form also. Please help me godhulirbalaka@yahoo.com

I have Shown All the Forms in modal :
Form1.Show 1
This ensures, till you close the Current Form, Next Form / MDI Form cannot be opened

Another thing is if i click another button for another form without closing previous one then automatically close the previous one and open new one. Is it posible?
Oct 29 '07 #1
3 2765
QVeen72
1,445 Expert 1GB
Hi,

Show All the Forms in modal :

Form1.Show 1

This ensures, till you close the Current Form, Next Form / MDI Form cannot be opened

Regards
Veena
Oct 29 '07 #2
Hi,

Show All the Forms in modal :

Form1.Show 1

This ensures, till you close the Current Form, Next Form / MDI Form cannot be opened

Regards
Veena

Yes sir i have done this. Another thing is if i click another button for another form without closing previous one then automatically close the previous one and open new one. Is it posible?
Oct 29 '07 #3
QVeen72
1,445 Expert 1GB
HI,

When you are showing the Form Modally, you cannot Open another Form Unless, you close the Current Form..

Regards
Veena
Oct 29 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

17 posts views Thread by Phil Powell | last post: by
4 posts views Thread by Tonya | last post: by
9 posts views Thread by Tony Williams | last post: by
3 posts views Thread by Susan Bricker | last post: by
8 posts views Thread by Emily Jones | last post: by
2 posts views Thread by erick-flores | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.