Re: Getting the keyboard state (C#)

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 02/03/04


Date: 03 Feb 2004 13:21:23 +0100


* =?Utf-8?B?Q2hhcmxlcyBSYW5kYWxs?= <anonymous@discussions.microsoft.com> scripsit:
> In a MouseDown event, I want to find out what modifier keys are being
> held down to change the behavior of my program. I can't, however, seem
> to find a way of doing this. Can anyone offer any suggestions?

Just check out 'Control.ModifierKeys'.

-- 
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Relevant Pages

  • Re: MouseDown event on a combo
    ... Ken Snell [MVP] wrote: ... > Don't use the MouseDown event. ... Use the BeforeUpdate event to ask the user to ...
    (microsoft.public.access.modulesdaovba)
  • Re: How can I use the right mousedown event?
    ... Alex Yakhnin .NET CF MVP ... > Hi, I want use right mousedown event, just like following: ... > From: David ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: ListView - RightClick item to select
    ... In the MouseDown event, try: ... David Wier ... ASP.Net MVP ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Adding multiple guidelines
    ... [MVP] ... > How do I add multiple guidelines in Powerpoint? ... Always complete execution of the operation before releasing any modifier keys that are involved. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: How to get if some key was pressed in MouseDown event in .NET?
    ... I'm not sure I understand you, a key won't cause a MouseDown event, it would cause a KeyDown/KeyUp/KeyPress event. ... Morten Wennevik [C# MVP] ...
    (microsoft.public.dotnet.framework.windowsforms.controls)