I have the following code:
Private holdAllDataFromFile As New list(Of String)
holdAllDataFromFile = ReadWrite.ReadAll(FILE_PATH) 'Uses custom class to read/write.
For Each item In holdAllDataFromFile.AsEnumerable
menuConnections.DropDownItems.Add(finalData(1).tostring ) 'save to menu
Next
At run time, i wish to be able to click on those menu items and have them respond to events, i'm not sure on how to access them programmatically since there could be 1, 4, 10 different menu items, all with different names.
I was looking at this post similar to mine, but i'm not sure if this is the right way for me to accomplish this. Any thoughts?
Thanks