How to show dropdown list of menu items just like click on Parent menu by writing code

  • Thread starter Thread starter Sakharam Phapale
  • Start date Start date
S

Sakharam Phapale

Hi All,

How to show dropdown list of menu items just like click on Parent menu.

For example,

Edit (Parent menu)
Cut (child menu)
Copy (child menu)
Paste (child menu)

When you click on Edit menu, you get dropdown list of submenu items.
How to achieve this without clicking on Edit menu. i.e by code.

mnuEdit.PerformClick() doesn't work.

Thanks and Regards,

Sakahram Phapale
 
Assuming the Edit Menu has a Mnemonic, (for example: &Edit), then you can
call:

SendKeys.Send("%" + mnuEdit.Mnemonic);
 
Back
Top