hai frnds......
how to create dynamic menus in c#.net
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Apr 11, 2012, 2:04 AM
Please refer the below link
http://www.c-sharpcorner.com/UploadFile/4e2862/dynamically-creating-menus-and-submenus-items-to-web-forms/
Thanks
lakshmipathi vemulaPosted Apr 11, 2012, 1:26 AM
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