467,074 Members | 1,088 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

How to determine SHIFT key state - NOT from eventhandler

mdb
I want to determine whether the SHIFT key is depressed, but NOT during a
key up/down/pressed event. How can I do that?
Nov 17 '05 #1
  • viewed: 7473
Share:
1 Reply
Hi mdb,

You can use the static Control.ModifierKeys property to determine the state of Shift/Alt/Control.
There is also the Control.MouseButtons property for checking the Mouse outside the Mouse Events

On Thu, 19 May 2005 16:46:05 +0200, mdb <m_b_r_a_y@c_t_i_u_s_a__d0t__com> wrote:
I want to determine whether the SHIFT key is depressed, but NOT during a
key up/down/pressed event. How can I do that?


--
Happy coding!
Morten Wennevik [C# MVP]
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Vijay Kumar R. Zanvar | last post: by
43 posts views Thread by Mehta Shailendrakumar | last post: by
3 posts views Thread by Randy Armknecht | last post: by
2 posts views Thread by Ben Dilts | last post: by
3 posts views Thread by Neven Klofutar | last post: by
7 posts views Thread by Doru Roman | last post: by
3 posts views Thread by vtxr1300 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.