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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top