Programmatically add menu items and sub menus
-
Hi, Is it possible to programmatically add menu items and sub menus at run time? I want to read in the contents of a database when my form is loaded, and add two of the database columns to my menu strip. At design time, I've added a "View" menu. One of the options beneath it is, "Filter 1", and another is "Filter 2". I want the column 0 contents of my database to populate a sub menu off the "Filter 1" option, and my column 1 contents to populate a sub menu off "Filter 2". I'm using VB.NET 2005 Express.
-
Hi, Is it possible to programmatically add menu items and sub menus at run time? I want to read in the contents of a database when my form is loaded, and add two of the database columns to my menu strip. At design time, I've added a "View" menu. One of the options beneath it is, "Filter 1", and another is "Filter 2". I want the column 0 contents of my database to populate a sub menu off the "Filter 1" option, and my column 1 contents to populate a sub menu off "Filter 2". I'm using VB.NET 2005 Express.