how to create sub menu item by coding
-
i have a Menu bar . and i want to create sub item and add it into Menu ... please give me some guide line..
-
Assuming the name of your menu is MenuStrip1, then create a new ToolStripMenuItem and add it to the DropDownItems collection of MenuStrip1
-
xingselex wrote:
may u give me as code?
He practically did just give you it as code. If you cant work out the code from what he said then you are way out of your league with what you are trying to do. You need to get a book on the basics of .Net, possible even programming in general if all you do is copy and paste code.
Life goes very fast. Tomorrow, today is already yesterday.
-
i have a Menu bar . and i want to create sub item and add it into Menu ... please give me some guide line..
MenuItem m = new MenuItem("aaa", "1"); Menu1.Items.Add(m); m.ChildItems.Add(new MenuItem("bbb", "2")); m.ChildItems.Add(new MenuItem("ccc", "3"));
Padmanabhan