Hi,
I am trying to add 2 menuItems to a toolstrip menu. I cant get it to work and wonder what I am doing wrong.
Also I like to add a click event to those items each that will open up the respective URL for each item "http://www.google.com" and "http://www.yahoo.com"
//Now add To menu
List<String^> All = gcnew List<String^>();
All.Add("Google");
All.Add("Yahoo");
ToolStripMenuItem^ newItem = gcnew ToolStripMenuItem();
for( int i = 0; i < All ->Count; i++ )
{
newItem = gcnew ToolStripMenuItem();
newItem->Text = All[i]->ToString();
newItem->Click += gcnew EventHandler(ClickEvent);
MyMenuToolStripMenuItem->DropDownItems->Add(newItem);
}