PC Review


Reply
Thread Tools Rate Thread

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

 
 
Torben Laursen
Guest
Posts: n/a
 
      30th Apr 2008
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

 
Reply With Quote
 
 
 
 
Mark Ivey
Guest
Posts: n/a
 
      30th Apr 2008
I am not real sure about this issue, but this link may help out...

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

Mark Ivey

"Torben Laursen" <(E-Mail Removed)> wrote in message
news:B57192E4-ABC8-4D5E-AC80-(E-Mail Removed)...
> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help...Pressing C on the keyboard opens My Computer and pressing Dopens the Calculator... eggedd2k Windows XP General 1 22nd Jul 2008 09:45 AM
Catch a user pressing Alt-K Phillip Taylor Microsoft VB .NET 1 29th Aug 2007 01:46 PM
How to handle the user pressing the enter key Corey-g via AccessMonster.com Microsoft Access Form Coding 7 26th Sep 2006 11:23 PM
Show user defined commandbarButton when the user right clicks on Contact Venugopal Microsoft Outlook Program Addins 3 19th Nov 2003 12:49 PM
User pressing the rocker wheel Manfred Derenbach Microsoft Dot NET Compact Framework 1 20th Aug 2003 12:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:26 AM.