|
-
Mar 15th, 2006, 07:55 AM
#1
Thread Starter
Fanatic Member
Add items to menustrip
version 2.0
VS 2005
I know this is going to sound silly but how the hell do I add a new item to a menustrip in code if it is called mainmenu1 with a single menu item called menuitem1 ?
Highly Embaressed here
-
Mar 15th, 2006, 08:09 PM
#2
Re: Add items to menustrip
One of the good things about the .NET Framework is that it's built in a very consistent way. If an object has child objects it will always have a property that is a collection that contains those child objects. This means that if you know how to do something for one type of object then you basically know howe to perform the analogous operation for a similar object. In the case of a ToolStripMenuItem object this collection property is DropDownItems.
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
|
Click Here to Expand Forum to Full Width
|