473,386 Members | 1,819 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,386 software developers and data experts.

Guess I have to give up trying to clone a menu!

Guess I have to give up!

I tried hard to figure a way with the new toolmenustrip but it's not
possible.

When I went from VB6 to VB.net I found I could generate a context menu in a
usercontrol and pass it to a form which merged it with the forms menu.

For all those menu items the form had to know nothing. If one was clicked
the usercontrol responded directly.

Unbelievable all the code I dumped that use to keep the forms menu updated
and called usercontrol methods for menuitem clicks.

Now comes VS2005 with such nice menu I want to use them but I can not figure
a way to create a usercontrol contextmenu and pass it to the form so that
both the context and mainmenu. I tried to write my own ContextMenu clone but
ran into problems there.

Seems that no matter what I tried it either did not work of if it did it
simply moved the items from one menu to another.

So why this post?

Before I go the VS2003 way I want to be sure a better VS2005 way is not
coming soon.

Is there an VS2005 update in the works?

Does it include anything that would help me?
A clone method for the menus would be great.

I noticed that MS generated merge methods that make the usual MDI menu
updates work.

Even if the clone could only handle ToolStripMenuItems that would go a long
way.

Or if one of the possible drop down items was a cloneableMenuItem and the
other types were ignored in a clone.
Thanks for any input as to what's coming from MS.




Mar 8 '06 #1
0 927

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

Similar topics

9
by: flarkblark | last post by:
I recently had the displeasure of looking at the code required to implement the pop-up menus used in a pulldown menu system for a webpage. The sheer amount of Javascript required was amazing...
13
by: Tony Johansson | last post by:
Hello Experts! I want to create a virtual clone but I'm not sure if this is the wright way. Can somebody tell me where I have made error in the code. I get some compile error in this code also....
1
by: James C. Li | last post by:
why implement icloneable which seems to involve writing public object Clone() { return this; } when I can do myobject o1 = new myobject() myobject o2;
11
by: K.K. | last post by:
Suppose I have a class called Vehicle with many fields. Now I make a new class derived from Vehicle called Car. I'd like to make a method to copy the data from a Vehicle instance to a Car instance....
4
by: Brian Keating | last post by:
Hi there, Consider this from MSDN *Notes to Inheritors When you derive from DataGridViewCheckBoxCell and add new properties to the derived class, be sure to override the Clone method to copy the...
2
by: Rob R. Ainscough | last post by:
Is there an easy way to clone an object? What I've done in the past is write my own Clone method for each class i create and then just assign property values across objects. I was hoping VS...
0
by: Netter | last post by:
I need to clone a Context menu. Is that practical. I can't figure out how. Thanks
1
by: news | last post by:
Good Day, I'm trying to add a menu item when I right click over a control (VC++). I've been reading and expirementing all day with no luck. Any tips would be greatly appreciated. Bill
18
by: active | last post by:
Console.WriteLine(String.Equals(s, s.Clone.ToString)) s is type string. This returns True. If Clone really made a new copy I'd expect False.
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.