473,395 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Nov 15 '05 #1
2 1605
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" <an**********@hotmail.com> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #2
Thanks for the reply Jay. Yes your mail did help.

Thanks
Anand

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:Ob****************@TK2MSFTNGP10.phx.gbl...
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" <an**********@hotmail.com> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
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


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jason Huang | last post by:
Hi, In VB, we have windows control item "MainMenu", do we have this item in the ASP.Net C# web form? Or how could we make it? By the way, how about the ASP.Net 2005? Thanks for help. Jason
2
by: Marty | last post by:
Hi, I have this issue where a form that contain a System.windows.forms.mainmenu has its height increased by the height of the mainmenu at object creation level. Here's the idea: //form...
2
by: Scott | last post by:
ok, I need to add to a list box each of the items that are in my mainmenu dynamicaly at run time. Due to the structure of adding menu items to menu items I don't see how to do this without...
1
by: Wayne | last post by:
I have a MDI Container, it has its own MainMenu. When I instance a Form that I have created a MainMenu for, instead of staying with the instance of the form, it will appear on the MDI Container...
5
by: Mitchell Vincent | last post by:
A picture says a thousand words, so here are 2! Design Time: http://www.ksoftware.net/examples/Clip1.jpg Run Time: http://www.ksoftware.net/examples/Clip2.jpg The problems started when I...
2
by: polocar | last post by:
Hi, I'm writing a program using Visual C# 2005 Professional Edition, and I was trying to assign multiple MainMenu objects (one by one, of course) to the same Form (let's suppose 2 MainMenu...
0
by: genojoe | last post by:
Included below are four methods and a Friend that can be inserted directly into a form that already contains Button1, Button2, and MenuStrip1. Button1 populates the MainMenu control, button2...
1
by: Benson | last post by:
I have a MainMenu (MenuStrip) which will be loaded (dynamic by codes) after the program Login form. The first time run is ok. But when I close the MainMenu and go back to Login form, and then go to...
2
by: Academia | last post by:
In an old project I still use MainMenu and ContexMenu. How can I get them to appear in my Toolbox? Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.