Results 1 to 6 of 6

Thread: [RESOLVED] MDI Child Control Parent Menu Bar.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    Resolved [RESOLVED] MDI Child Control Parent Menu Bar.

    I am having a problem referencing the MDI Parent from my child to tell a Menu Item to Disable/Enable itself. I have a program where the childs need to do this. Hopefully someone has a good workaround.

    BTW I'm getting a only one MDI parent error when I try calling it by the Parents name.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: MDI Child Control Parent Menu Bar.

    Could you post some code? I think I have experienced doing such and encountered no problems...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    Re: MDI Child Control Parent Menu Bar.

    Oh it would be something simple like this

    the parent is called frmMain (Generic eh?)

    I have a menu item as such
    frmMain.MenuItem.Enabled = True

    and it fires an error on frmMain because it says only one MDI Parent form allowed on the form. Is there some property on this page I need to enable?

    I can only make it work by calling it with Me.... on the parent form.
    Seems like a few querks using MDI forms.

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: MDI Child Control Parent Menu Bar.

    Strange, just checked it and it really errors out and I dont know why... What you may do is to make a Procedure in your MDIForm then call it with your child forms and passing some parameter that would determine the menu to be disabled...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    Re: MDI Child Control Parent Menu Bar.

    Call frmMain.EnableCloseWrk causes issues
    only one MDI Form Allowed.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jun 2005
    Posts
    192

    Re: MDI Child Control Parent Menu Bar.

    Resolved as of this morning, something simple in my Sub Main module. Be sure if you have windows design your form that you use fMainForm instead of the actual name of the form.

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