| |

VerySource

 Forgot password?
 Register
Search
View: 821|Reply: 7

How to assign a shortcut to a button

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-4 13:40:02
| Show all posts |Read mode
I want to set a shortcut key for a OK button. When I fill in the information, I want the user to press enter to trigger the click event of the OK button.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 14:30:01
| Show all posts
Form has a property that is what the Accept is, where it can be set.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-4 14:51:01
| Show all posts
3q
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-4 23:27:01
| Show all posts
AcceptButton / CancelButton
top
Reply

Use magic Report

0

Threads

6

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-5 14:09:01
| Show all posts
You can also override ProcessCmdKey
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-5 14:15:01
| Show all posts
Man, make sure you do b / s or c / s property settings
Reply

Use magic Report

0

Threads

56

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-5 14:36:01
| Show all posts
The form's AcceptButton property is set to the button you want to submit
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-8-19 23:15:01
| Show all posts
But do I have it on the web?
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