Mainmenu disabled - Why

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anand Ganesh

    #1

    Mainmenu disabled - Why

    Hi All,

    I am trying to create a control - .dll file.

    In the toolbox the MainMenu tool is disabled.

    What should I do to invoke it?

    Why is it disbaled?

    If I want to use a control with its own menu systems, how to do it?

    Thanks for the help.

    Thanks
    Anand Ganesh


  • Jay B. Harlow [MVP - Outlook]

    #2
    Re: Mainmenu disabled - Why

    Anand,
    The MainMenu object can only be placed on a Form object. As only a Form can
    have a MainMenu.

    You can place ContextMenus on controls.

    I'm not sure how you would get the menu to be displayed, but you could
    consider deriving from Menu or MainMenu to create a 'MainMenu' that is
    displayed on controls.

    Within your code, you are free to create any kind of menu object you want.
    Showing it may be a different store. For a plugin architecture I am working
    on, I am going to return a 'menu' object that the main frame with merge with
    its menus...

    Hope this helps
    Jay

    "Anand Ganesh" <anand_ganesh@h otmail.com> wrote in message
    news:u$yaB4NbDH A.2672@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi All,
    >
    > I am trying to create a control - .dll file.
    >
    > In the toolbox the MainMenu tool is disabled.
    >
    > What should I do to invoke it?
    >
    > Why is it disbaled?
    >
    > If I want to use a control with its own menu systems, how to do it?
    >
    > Thanks for the help.
    >
    > Thanks
    > Anand Ganesh
    >
    >[/color]


    Comment

    • Anand Ganesh

      #3
      Re: Mainmenu disabled - Why

      Thanks for the reply Jay. Yes your mail did help.

      Thanks
      Anand

      "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow@ema il.msn.com> wrote in message
      news:ObvMg%23Nb DHA.2032@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > Anand,
      > The MainMenu object can only be placed on a Form object. As only a Form[/color]
      can[color=blue]
      > have a MainMenu.
      >
      > You can place ContextMenus on controls.
      >
      > I'm not sure how you would get the menu to be displayed, but you could
      > consider deriving from Menu or MainMenu to create a 'MainMenu' that is
      > displayed on controls.
      >
      > Within your code, you are free to create any kind of menu object you want.
      > Showing it may be a different store. For a plugin architecture I am[/color]
      working[color=blue]
      > on, I am going to return a 'menu' object that the main frame with merge[/color]
      with[color=blue]
      > its menus...
      >
      > Hope this helps
      > Jay
      >
      > "Anand Ganesh" <anand_ganesh@h otmail.com> wrote in message
      > news:u$yaB4NbDH A.2672@tk2msftn gp13.phx.gbl...[color=green]
      > > Hi All,
      > >
      > > I am trying to create a control - .dll file.
      > >
      > > In the toolbox the MainMenu tool is disabled.
      > >
      > > What should I do to invoke it?
      > >
      > > Why is it disbaled?
      > >
      > > If I want to use a control with its own menu systems, how to do it?
      > >
      > > Thanks for the help.
      > >
      > > Thanks
      > > Anand Ganesh
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...