Click to See Complete Forum and Search --> : How to have main menu in a control?
benchris
February 5th, 2003, 11:02 AM
Hi,
I am trying to create a control project with a menu on the top. It seems I cannot add main menu control to my control and I do not want to use contextmenu since I need the users to see it without doing anything.
Could anyone please give some suggestions?
Thanks
Chris
pareshgh
February 5th, 2003, 11:19 AM
if it is a Custom Control Page
you can drop a Context menu and activate it by programatically
other wise if it is a User Control
and Windows Control Library then
you have to add the context menu and
select the particular control and set
its
"Context Menu" property to the just added
Contextmenu1
so that its now assigned. and now on right click the menu should come.
thanx
Paresh
benchris
February 5th, 2003, 01:25 PM
thanks. Yeah, I used contextmenu, but I do not want user to right click to get it, instead, I would like the menu will show up as part of the control on the top. Any suggestions?
pareshgh
February 5th, 2003, 01:28 PM
Ahh , then you need to use the
MainMenu on Forms. make sure that applications are MDI based and you handle the windows properly. like min/max etc...
Paresh
benchris
February 5th, 2003, 02:29 PM
the problem is that when I started a window control lib project in Visual Studio .NET, the MainMenu option is gray. I simply cannot move it to my form.
What does MDI mean?
Thanks
pareshgh
February 5th, 2003, 02:32 PM
MDI is Multiple document interface.
if MainMenu is gray then you need to use that manually.
for example.
make usual windows app. and make a form. drop that mainmenu and
copy paste the code in ur control code.
Paresh
benchris
February 5th, 2003, 03:34 PM
will try. thanks
pareshgh
February 5th, 2003, 04:23 PM
yes, try and let me know how it works etc.
how does it look etc...
Paresh
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.