Results 1 to 2 of 2

Thread: Add items to menustrip

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    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

    Parksie

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width