Results 1 to 7 of 7

Thread: mdi and display file menu

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    mdi and display file menu

    Hello

    Not sure if you will understand me on this question. I have created a mdi form and have one child of that form. On the child form l have placed a file menu and toolbar.

    When the program starts i press a button on the parent form to show the child form in maximized. But l want the child file menu and toolbar to be replaced with the one l have put on the parent mdi form.

    Many thanks for your help in advance

    Steve
    steve

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Click the menu you want to replace , and change MergeOrder to something like 20 or 30 (space between menu1 and menu 2 like File and Edit menus)then change Merge Type to Replace or Add if you want to the second's form menu withe the existing ones .

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331
    thanks for your response.

    But i did not want to merge the menu and toolbar with the child form. But wanted the child form to completely replace the parent form with its own toolbar and file menu.

    Any idea on how to do this.

    Many thanks in advance

    Steve
    steve

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Did you go through that menu options . It has replace methods .

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    OK , here is a demo of how to do that . Go through the properties of main form's menu and the subform's . You have to change all the menus Merge Type to Replace .
    Attached Files Attached Files

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331
    Hello

    I did go through and change all the merge type to replace. On the parent and child form. It still did not work for me.

    What l want is to replace the file and toolbar menu from the parent form and replace it with the childs own file and toolbar when the forum is opened in maximed.

    The file you sent, l could not open it. I have however, sent my application, maybe you can see what l am trying to do.

    Many thanks for you time.

    Steve
    Attached Files Attached Files
    steve

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    For the toolbar of the main form , either you hide it while other child form is maximized or just disable it . For the menu part , they are all easy to figure out . See the rules of replace and add or merge with existing menuitems . The demo I've sent is C#.NET 2003 . Use the converter under my sig. to get it back to 2002 .

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