Dynamically adding menu items and their OnClick events



How do I add items to a menu while simultanesously adding an OnClick event
for each. I have an 2Xn array of text items (labels) and matching URLs.e.g.

"Google", www.google.com
"Yahoo", www.yahoo.com

I want the first column to be the menu label and the second column is where
the browser goes when the menu is clicked. OK, so the first part is easy.

AdditionalToolStripMenu.DropDownItems.Add(strResearchLinksArray(i, 1))

How do I go to strResearchLinksArray(i, 0) when that item is clicked. I am
vb.net 2005.
--
Thanx & Regards,
Anil Gupte


.



Relevant Pages

  • Re: Merging data from excel into a word table
    ... To get your five pairs of labels to a page, you need a Next Record field before the first merge field in the first column of the second through the fifth rows only. ... and then into a Word table - almost like a label format only the same ...
    (microsoft.public.word.tables)
  • Re: Dynamically adding menu items and their OnClick events
    ... I have an 2Xn array of text items (labels) and matching ... I want the first column to be the menu label and the second column is ... Dim index = DirectCast.Tag, Integer) ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Excel doesnt add up Pie Chats correctly
    ... so to create the chart like i think you want, ... labels and then highlite the first column of your data ... I've found a possible problem with Excel 2002 ...
    (microsoft.public.excel.misc)
  • Re: Stacked Charts
    ... The first column has the quarter labels, the second has the turnover numbers, the third the target numbers. ... I want to lay this out in quarters so Quarter 1 will be Turnover and Target two charts but next to each other and same applies to all other quarters. ...
    (microsoft.public.excel.charting)
  • Re: Dynamically adding menu items and their OnClick events
    ... I have an 2Xn array of text items (labels) and matching URLs.e.g. ... I want the first column to be the menu label and the second column is where ... Dim index = DirectCast.Tag, Integer) ...
    (microsoft.public.dotnet.languages.vb)