1 Attachment(s)
[RESOLVED] Parent - Child MDI Form Problem ( Looks )
In My Project there is a Parent MDI and several child MDI
I am having serious problem in their looks .. I have attached a simple FORM with 1-2 child MDI and a login / logout form
All i want to do is..
1) the Parent should be maximized when program runs.. or in a good size compared to the user screen
2) In startup of MDI all mnu should be disable except the "login" mnu and "exit" mnu
3) When a person logins all mnu should be enabled and login should be disabled
4) When a person clicks on form1 or form2 . the current loaded form should close and the form should open
5) the size proportion between the child MDI and parent MDI should be good looking..
this is for my college project and i just want good looks..
someone please modify this project example and reupload so that i can assess it and see how it is done
i m desperate.. ive tried many things in child / parent MDI but looks do not come well..
help me here... :)
Re: Parent - Child MDI Form Problem ( Looks )
2)
VB Code:
Private Sub MDIForm_Load()
mnuforms.Enabled = False
mnulogout.Enabled = False
End Sub
Re: Parent - Child MDI Form Problem ( Looks )
3)
VB Code:
Private Sub mnulogin_Click()
login.Show
mnuforms.Enabled = True
mnulogout.Enabled = True
mnulogin.Enabled = False
End Sub
Re: Parent - Child MDI Form Problem ( Looks )
4)
VB Code:
Private Sub mnuform1_Click()
If Form2.Visible = True Then Unload Form2
Form1.Show
End Sub
Private Sub mnuform2_Click()
If Form1.Visible = True Then Unload Form1
Form2.Show
End Sub
Re: Parent - Child MDI Form Problem ( Looks )
There is a demo app/code on the net called VBDraw that is a really good example of decently complex mdi form/menu stuff..
Re: Parent - Child MDI Form Problem ( Looks )
Quote:
Originally Posted by danasegarane
4)
VB Code:
Private Sub mnuform1_Click()
If Form2.Visible = True Then Unload Form2
Form1.Show
End Sub
Private Sub mnuform2_Click()
If Form1.Visible = True Then Unload Form1
Form2.Show
End Sub
looks good but what if the person changes from form1 to form2 using a button within the form and not the menu??
can u please edit and update the attachment and reupload ??/
:)
Re: Parent - Child MDI Form Problem ( Looks )
Dear Khandu,
I have to upload something, Then I have to get the approval from my GM.So it is not possible.You tell the problem.I will help as much I can:D
Re: Parent - Child MDI Form Problem ( Looks )
:) np
see.. u have done is that if frm1 is there then it will unload it and frm2 will load..
but what if there are 20+ forms and dont knw what is open.. then how will it close the current window and open the one requested..
not more than 1 form can be open at any given time.. thats my basic need.. and all should be in center of parent MDI
Re: Parent - Child MDI Form Problem ( Looks )
Quote:
Originally Posted by triggernum5
There is a demo app/code on the net called VBDraw that is a really good example of decently complex mdi form/menu stuff..
googled but couldnt find nethin..
can u give a link ??
Re: Parent - Child MDI Form Problem ( Looks )
Re: Parent - Child MDI Form Problem ( Looks )
i would make a sub that will go through and unload every form except the main MDI form, and everytime you click something to open a new form, it will run that sub, and then open the one your trying to open.
Re: Parent - Child MDI Form Problem ( Looks )
now thats a very nice idea.. cause there are only 20+ forms and although it wont be professional coding i guess, i can still do it
thanks PMad
resolved
Re: Parent - Child MDI Form Problem ( Looks )
repped PMad and danasegarane