PDA

Click to See Complete Forum and Search --> : Dynamic Menu in VB.Net


DirkAG
Apr 30th, 2002, 04:36 AM
Hi,

I've build a class that generates a MainMenu from a database/SQLDataReader.

Then I pass this MainMenu to a Form's MainMenu. This all works fine, but when I want to raise an event when the Main Menu gets clicked, it does not have such an event. I am not referring to individual MenuItems on the MainMenu but rahter to the MainMenu self that gets clicked.

How can one dynamically raise such an event ?

Thanks,
Dirk
PS. I include the Form that contains the mnuMain control that gets populated by the class with MenuItems dynamically.