hai frnds......
how to create dynamic menus in c#.net
Dynamic menus
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
lakshmipathi vemula20 reputationPosted Apr 10, 2012, 9:26 PM EDT
private void button1_Click(object sender, EventArgs e)
{
MainMenu mnuFileMenu = new MainMenu();
this.Menu = mnuFileMenu;
MenuItem myMenuItemFile = new MenuItem("&File");
MenuItem myMenuItemNew = new MenuItem("&New");
mnuFileMenu.MenuItems.Add(myMenuItemFile);
myMenuItemFile.MenuItems.Add(myMenuItemNew);
}
If you want more Explanation on Windows forms
Follow the link:http://www.bestdotnettraining.com/Online/Training/CSharp/WinForms/14
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 10, 2012, 10:04 PM EDT
Please refer the below link
http://www.c-sharpcorner.com/UploadFile/4e2862/dynamically-creating-menus-and-submenus-items-to-web-forms/
Thanks