| |

VerySource

 Forgot password?
 Register
Search
View: 696|Reply: 4

How to check if the Ctrl key is pressed while the left mouse button is pressed?

[Copy link]

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-2-12 13:30:01
| Show all posts |Read mode
RT.
Also, how to prevent the menu from appearing when the mouse is left-clicked in the Textbox?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-10 14:15:02
| Show all posts
e.Control = True
Reply

Use magic Report

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-4-10 20:30:01
| Show all posts
e.Control only exists in the KeyDown event and is a member of System.Windows.Forms.KeyEventArgs, but not in MouseDown. I cannot find this property / method in System.Windows.Forms.MouseEventArgs. .
Reply

Use magic Report

0

Threads

11

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-11 10:15:01
| Show all posts
Me.ModifierKeys = Keys.Control
Reply

Use magic Report

3

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

 Author| Post time: 2020-4-11 16:30:01
| Show all posts
Thank you! Has been successful!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list