Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a main menu in mdiMain form (File,Inquiry etc.) and Those main menu having sub menu (file - Item,Bank,User etc.) i want to find an item by passing item text

eg _ Item Menu Name is : defineItemTypeToolStripMenuItem
Item menu text is : Item Register

how to find an item by passing menu text

like

getMenu.PaseString("Item Register") then Should Return Menu name of "Item Register" as

defineItemTypeToolStripMenuItem
Posted

This question has already been answered here[^]. Please post questions in one forum only.
 
Share this answer
 
You may iterate over all items (and sub items, if necessery), comparing the Text property with your text.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900