Results 1 to 13 of 13

Thread: [RESOLVED] Parent - Child MDI Form Problem ( Looks )

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Resolved [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...
    Attached Files Attached Files

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Parent - Child MDI Form Problem ( Looks )

    2)
    VB Code:
    1. Private Sub MDIForm_Load()
    2.  mnuforms.Enabled = False
    3.  mnulogout.Enabled = False
    4. End Sub
    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Parent - Child MDI Form Problem ( Looks )

    3)
    VB Code:
    1. Private Sub mnulogin_Click()
    2.  login.Show
    3.  mnuforms.Enabled = True
    4.  mnulogout.Enabled = True
    5.  mnulogin.Enabled = False
    6. End Sub
    Please mark you thread resolved using the Thread Tools as shown

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Parent - Child MDI Form Problem ( Looks )

    4)
    VB Code:
    1. Private Sub mnuform1_Click()
    2.    If Form2.Visible = True Then Unload Form2
    3.     Form1.Show
    4. End Sub
    5.  
    6. Private Sub mnuform2_Click()
    7.     If Form1.Visible = True Then Unload Form1
    8.     Form2.Show
    9. End Sub
    Please mark you thread resolved using the Thread Tools as shown

  5. #5
    Hyperactive Member
    Join Date
    Aug 2006
    Posts
    367

    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..

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Re: Parent - Child MDI Form Problem ( Looks )

    Quote Originally Posted by danasegarane
    4)
    VB Code:
    1. Private Sub mnuform1_Click()
    2.    If Form2.Visible = True Then Unload Form2
    3.     Form1.Show
    4. End Sub
    5.  
    6. Private Sub mnuform2_Click()
    7.     If Form1.Visible = True Then Unload Form1
    8.     Form2.Show
    9. 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 ??/


  7. #7
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    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
    Please mark you thread resolved using the Thread Tools as shown

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    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

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    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 ??

  10. #10
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Parent - Child MDI Form Problem ( Looks )

    Please mark you thread resolved using the Thread Tools as shown

  11. #11
    Fanatic Member
    Join Date
    Jun 2001
    Location
    Oregon
    Posts
    643

    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.

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    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

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Re: Parent - Child MDI Form Problem ( Looks )

    repped PMad and danasegarane

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width