473,513 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Toolbars and Menus

Hello Sir/Madam,
I am tring to create Menu and toolbar controls that looks like the one used in Office Xp. I have trird using the Menu class to create my own myMainMenu and MyMenuItem but in Ide after I put myMainMenu and try to create the subitems it creates MenuItem rather than myMenuItem how do i solve this problem. Also what would be the right way to achive my target create from scratch or use these base classes. If you could frovide any further information that I havent aksed you are most welcome. Also I am a VB.NET not c# so please keep that in mind when you reply.

Regards
Raj Singh Sisodia
--
I am here to solve problems and add a few of mine to yours
Nov 22 '05 #1
2 1751
The MenuDesigner is Private so you cannot derive from MainMenu and get it to
use your custom menuitems.
You have options though:

1. Code the Paint and MeasureItem Events for every MenuItem after setting
them to OwnerDraw.

2. Create your menu as usual and, once you've defined all the menuitems,
expand the 'Windows Form Designer generated code' region and do a search and
replace of 'System.Windows.Forms.MenuItem' with 'MyNameSpace.MyMenuItem'
(assuming that's the NameSpace and Name of your custom MenuItem)

3. Create a MenuExtender component to extend the properties of standard
MenuItems.

An Office Style Menu Class(Source Code)
http://dotnetrix.co.uk/menus.html

A MenuExtender(No Source, but you will find source for similar components
via Google)
http://dotnetrix.co.uk/controls.html --> MenuSkinner

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Raj Singh Sisodia" <Ra*************@discussions.microsoft.com> wrote in
message news:D4**********************************@microsof t.com...
Hello Sir/Madam,
I am tring to create Menu and toolbar controls that looks like the one used in Office Xp. I have trird using the Menu class to create my own
myMainMenu and MyMenuItem but in Ide after I put myMainMenu and try to
create the subitems it creates MenuItem rather than myMenuItem how do i
solve this problem. Also what would be the right way to achive my target
create from scratch or use these base classes. If you could frovide any
further information that I havent aksed you are most welcome. Also I am a
VB.NET not c# so please keep that in mind when you reply.
Regards
Raj Singh Sisodia
--
I am here to solve problems and add a few of mine to yours

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
Nov 22 '05 #2
Hello Mick,
Thanks for your reply, it really helped me but actually I am tring to make a control and I dont want to write any extra code to use it. I want it to be as simple as using the menus provided by >net ramework or the other 3rd party controls.
I think I will go by your advise to create an extender.
Thank you again for your help.

Best Regards
Raj Singh Sisodia
--
I am here to solve problems and add a few of mine to yours
"Mick Doherty" wrote:
The MenuDesigner is Private so you cannot derive from MainMenu and get it to
use your custom menuitems.
You have options though:

1. Code the Paint and MeasureItem Events for every MenuItem after setting
them to OwnerDraw.

2. Create your menu as usual and, once you've defined all the menuitems,
expand the 'Windows Form Designer generated code' region and do a search and
replace of 'System.Windows.Forms.MenuItem' with 'MyNameSpace.MyMenuItem'
(assuming that's the NameSpace and Name of your custom MenuItem)

3. Create a MenuExtender component to extend the properties of standard
MenuItems.

An Office Style Menu Class(Source Code)
http://dotnetrix.co.uk/menus.html

A MenuExtender(No Source, but you will find source for similar components
via Google)
http://dotnetrix.co.uk/controls.html --> MenuSkinner

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Raj Singh Sisodia" <Ra*************@discussions.microsoft.com> wrote in
message news:D4**********************************@microsof t.com...
Hello Sir/Madam,
I am tring to create Menu and toolbar controls that looks like the one

used in Office Xp. I have trird using the Menu class to create my own
myMainMenu and MyMenuItem but in Ide after I put myMainMenu and try to
create the subitems it creates MenuItem rather than myMenuItem how do i
solve this problem. Also what would be the right way to achive my target
create from scratch or use these base classes. If you could frovide any
further information that I havent aksed you are most welcome. Also I am a
VB.NET not c# so please keep that in mind when you reply.

Regards
Raj Singh Sisodia
--
I am here to solve problems and add a few of mine to yours

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004

Nov 22 '05 #3

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

Similar topics

7
1885
by: Jason Webb | last post by:
Dear Microsoft, The current "Windows.Forms" controls included in the .Net Framework are good, but in many ways they're pretty basic, and I think it's time that you take Windows.Forms to the...
4
8529
by: Karl Irvin | last post by:
In a 2000, can you transfer custom menus and toolbars to a new Access database. My mdf file is not compiling and I'm importing all data to a new database but don't see a way to get the...
2
2155
by: Heather | last post by:
I'm working on a db that has custom toolbars and menus. So all the commands for editing/designing forms, etc are gone. How do I get the default toolbars and menus back? I have no way to contact...
1
1793
by: MacDermott | last post by:
I have an MDB file which is secured using a custom MDW file. I'd like to have most users see only the shortened menu you see when you set the Startup option "Allow full menus" to False. But...
1
11267
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus...
3
11478
by: cefrancke | last post by:
The only reason I ask is that no one has made this subject clear or given a definitive answer. What I would like to do is, after turning off all the menus/tbars/etc using the startup options. ...
4
5432
by: TechBoy | last post by:
(RE: Access 2002 SP3) There are many default toolbars that have the database window icon in them. Different users will have various ones visible when my app starts. When my app opens, I only...
0
1158
by: Frank Rizzo | last post by:
I've noticed that the toolbars and menu controls got an overhaul in vs2005. Is there anyway to make them work like they do in 3rd party solutions (like infragistics or devexpress) or MFC (back in...
1
3340
by: bjaeger | last post by:
A few months back I was "playing" with an Access 2000 application I created. I somehow disabled the delete option from all menus, toolbars, and context menus. Now I cannot do any maintenance on...
15
1906
by: Neil | last post by:
So, I tried to copy a toolbar. I have a custom menu bar for a form. Tried to copy it so that I could modify the copy and use it with another form. With no direct way to copy it, I made a copy of...
0
7264
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,...
1
7106
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7534
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...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3236
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1601
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.