Mainmenu disabled - Why

  • Thread starter Thread starter Anand Ganesh
  • Start date Start date
A

Anand Ganesh

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
 
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
 
Back
Top