Dynamically adding menu items and their OnClick events
- From: "Anil Gupte/iCinema.com" <anil-list@xxxxxxxxxxx>
- Date: Tue, 2 Mar 2010 22:08:13 +0530
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
.
- Follow-Ups:
- Re: Dynamically adding menu items and their OnClick events
- From: Armin Zingler
- Re: Dynamically adding menu items and their OnClick events
- Prev by Date: Re: ctype question.
- Next by Date: RE: "Automating Word document for different versions of Word"
- Previous by thread: Regarding the software.
- Next by thread: Re: Dynamically adding menu items and their OnClick events
- Index(es):
Relevant Pages
|