Another question in regards to this code.
I will have it adding nodes based on the menu.
When a user clicks on the node I want it to run the same event code that is in place for the menu.
How can i do this?
similiar to this : I hand coded the below event.
private void button1_Click(object sender, System.EventArgs e)
{
this.FileLocalizeSetupBar_Click(sender, e);
}
>Hi, Shawn,
>
>Here's a code sample. This assumes your main menu is called "mainMenu1". It will loop through the menu pad pulldowns from left to right, and display the name of each pad along with the name of all the menu items for each pad.
>
>
>foreach(MenuItem oMenuPad in this.mainMenu1.MenuItems)
>{
> MessageBox.Show("Menu Pad is " + oMenuPad.Text);
> foreach(MenuItem oMenuItem in oMenuPad.MenuItems)
> MessageBox.Show("Menu Item for this pad is " + oMenuItem.Text);
>}
>
>
>Hope that helps...
>Kevin