View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mark Ivey[_3_] Mark Ivey[_3_] is offline
external usenet poster
 
Posts: 22
Default How do I know if user is pressing a key from the CommandBarButton class

I am not real sure about this issue, but this link may help out...

http://support.microsoft.com/kb/108357

Mark Ivey

"Torben Laursen" wrote in message
...
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