PC Review


Reply
Thread Tools Rate Thread

CTRL Mouse Click

 
 
Kevin L
Guest
Posts: n/a
 
      6th Oct 2003
Is there a way to tell when a user, for example, Clicks the right mouse
button while also pressing the Ctrl Key?


 
Reply With Quote
 
 
 
 
Kirk
Guest
Posts: n/a
 
      6th Oct 2003
Kevin,

you can use the keydown and keyup events to toggle a variable that tracks
the current state of your ctrl key (e.control). then check your state
variable on the mousedown or click events.
Make sure your form's keypreview property is set to true.

Kirk Graves


"Kevin L" <no_spam@not_real_email.com> wrote in message
news:u%(E-Mail Removed)...
> Is there a way to tell when a user, for example, Clicks the right mouse
> button while also pressing the Ctrl Key?
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      6th Oct 2003
"Kevin L" <no_spam@not_real_email.com> scripsit:
> Is there a way to tell when a user, for example, Clicks the right mouse
> button while also pressing the Ctrl Key?


You can check in the 'Click' event if the key is pressed:

\\\
If ((Control.ModifierKeys And Keys.Control) = Keys.Control Then
...
End If
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
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
ctrl+left mouse click not working =?Utf-8?B?YW5kcmU=?= Windows XP Help 0 6th Jun 2007 07:33 AM
ctrl + left mouse click opens another window =?Utf-8?B?YW5kcmU=?= Windows XP Help 1 5th Jun 2007 07:20 AM
Internet Explorer automatically closing when using ctrl+N or right click of mouse varma Windows XP Internet Explorer 1 15th Feb 2006 05:49 PM
CTRL+Mouse click always launches a New IE Window JimH Windows XP Internet Explorer 1 13th Apr 2004 02:27 PM
Ctrl + mouse click implementation problem Dmitry Microsoft Dot NET Framework Forms 2 29th Dec 2003 06:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:55 AM.