| |

VerySource

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

How to judge the end of text box editing

[Copy link]

2

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-10-16 10:30:01
| Show all posts |Read mode
How to judge the end of the text box (TextBox) editing, I need to check the value at the end of its editing, the focus is only after the last edit, do not check
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-10-16 11:00:01
| Show all posts
onblur
Reply

Use magic Report

2

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-10-16 12:30:01
| Show all posts
Winform does not have this event
Reply

Use magic Report

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-10-16 12:45:01
| Show all posts
Mouseleave event, winform should be written in the form LOAD event.
textbox1.mouseleave(); You can use the IF statement to achieve the function you want to achieve
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-10-16 13:00:02
| Show all posts
Determine whether to enter or focus out of the TextBox box
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-10-16 13:15:01
| Show all posts
How onchange can use this event regardless of whether it is prompted or not
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 Japan

Post time: 2020-10-16 13:30:01
| Show all posts
枫叶之龙
Determine whether to enter or focus out of the TextBox box

If you lose focus, just use onblur as苹果小刀said.
Reply

Use magic Report

2

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-10-16 14:30:02
| Show all posts
Mainly how to judge whether the value of TextBox has been edited, so that it can be executed when the focus leaves
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