I have a winform that I have a main menu going horizontally across as such:
MenuItem opt1 = new MenuItem();
opt1.Text = "Save Image";
opt1.Click += new EventHandler(opt1_Click);
MenuItem opt2 = new MenuItem();
opt2.Text = "Upload Data";
opt2.Click += new EventHandler(opt2_Click);
mainMenu.MenuItems.Add(opt1);
mainMenu.MenuItems.Add(opt2);
form.Menu = mainMenu;
What I want is when the user clicks on ‘Upload Data’ a drop down menu to show, with a small number of other options. Could somebody please point me in the right direction as to what I should be looking at?
Thanks.
Just add menu items to the opt2
opt2.MenuItems.Add(….)