-
How to add custom winforms MenuItem to MainMenu
Hi all, I'm working with VB 2003 .NET 1.1
I would like to create a custom MainMenu control that use custom MenuItem.
My problem is when I'm editing the custom MainMenu control in design-time, it creates System.Windows.Forms.MenuItem instead of my custom MenuItem.
How can I tell the designer to use my custom MenuItem?
Thank you for your help.
-
In Code view, go into the region labeled "Windows Forms Designer Generated Code" and change the control class from System.Windows.Forms.MenuItem to the name of your custom class.
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Thank you for your answer but I don't want to do this manually in code view. I would like the designer to automatically generate my custom class each time I add a MenuItem into the MainMenu in design-time.
-
I don't think that's possible. The designer doesn't know about your custom class.
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Similar Threads
-
By chupacabra in forum VB Classic
Replies: 4
Last Post: 04-22-2009, 05:38 PM
-
By Michael Sorens in forum XML
Replies: 0
Last Post: 12-11-2002, 06:05 PM
-
By Greg Rothlander in forum ASP.NET
Replies: 1
Last Post: 11-27-2001, 06:09 PM
-
By Jacky in forum VB Classic
Replies: 6
Last Post: 12-26-2000, 10:01 AM
-
By Jacky in forum VB Classic
Replies: 0
Last Post: 12-25-2000, 04:55 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks