I have a ContextMenu like in this picture. Now i want to add where it says ".rtf" more MenuItems at runtime. I cant seem to make it...
Dim myContextMenu As ContextMenuStrip = Form1.mnuOptions
Dim myMenuItem As ToolStripMenuItem = myContextMenu.Items("SendTo")
Dim mySubMenuItem As New ToolStripMenuItem = myMenuItem.DropDownItems("File").SUBITEMS
This is how i imagine doing it, but it does not work of course because there is no ".subitems". What does it take to accomplish such an easy job?
And how can I set AddHandlers for each SubItem to a procedure?