How do I know if user is pressing a key from the CommandBarButton class

T

Torben Laursen

I have a custom menu in Excel written in C#

Now I would like to check if a user is holding down the shift key when he is
clicking on one of my menu's.
I want to use this for hidden advanced features.
The function looks like this:
private void MI_EditUsingDatabase(CommandBarButton Ctrl, ref Boolean
CancelDefault)
{
bla bla
}

But how do I know if the user is pressing a key inside this function?

Torben
 

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

Top