惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
N
Netflix TechBlog - Medium
罗磊的独立博客
博客园 - 聂微东
美团技术团队
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
博客园_首页
宝玉的分享
宝玉的分享
G
GRAHAM CLULEY
Microsoft Azure Blog
Microsoft Azure Blog
量子位
SecWiki News
SecWiki News
F
Fortinet All Blogs
J
Java Code Geeks
S
SegmentFault 最新的问题
V
V2EX
Martin Fowler
Martin Fowler
F
Full Disclosure
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
S
Security Affairs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
S
Secure Thoughts
S
Schneier on Security
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
Cloudbric
Cloudbric
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
爱范儿
爱范儿
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
C
Check Point Blog
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
Hacker News - Newest:
Hacker News - Newest: "LLM"
G
Google Developers Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Tenable Blog
博客园 - 【当耐特】

博客园 - williambirkin

.NET平台自带的AOP机制 转自《设计模式--基于c#的工程化实现及扩展》 今天看PolicyInjection遇到的问题 我的第一个ASP.NET Ajax控件 转 事务隔离级别 转 UML 基础: 类图 关于Form.show的问题 关于where中子查询的性能问题 请高手指教 模式 转 SQL Server 索引结构及其使用 (三) 转 SQL Server 索引结构及其使用 (二) 转 SQL Server 索引结构及其使用 (一) 泛型的一点思考 摘自《.NET 2.0 模式开发实战》 转 《为Windows应用创建简单的异步调用模式》 转 C#格式化数值结果表(格式化字符串) SQL游标的简单使用 转“理解VC# 2005中的字符串和正规表达式” 2个IP输入控件 Windows Forms中禁用窗体的关闭按钮 回车移动焦点
文本框事件顺序
williambirkin · 2007-05-09 · via 博客园 - williambirkin

测试代码如下:

测试代码

测试结果:

画面初始化时焦点在textBox1中,
然后输入“1”和“2”。
鼠标点击进入textBox3,输入“1”,
然后点击其他按钮。
画面初始化时焦点在textBox1中,
然后输入“1”和“2”。
按tab键进入textBox3,输入“1”,
然后按按tab键焦点移动到richTextBox1。

事件顺序

textBox1.
Focused

textBox3.
Focused

ActiveControl

事件顺序

textBox1.
Focused

textBox3.
Focused

ActiveControl

textBox1_Enter; FALSE FALSE textBox1 textBox1_Enter; FALSE FALSE textBox1
textBox1_GotFocus; TRUE FALSE textBox1 textBox1_GotFocus; TRUE FALSE textBox1
textBox1_KeyDown; TRUE FALSE textBox1 textBox1_KeyDown; TRUE FALSE textBox1
textBox1_KeyPress; TRUE FALSE textBox1 textBox1_KeyPress; TRUE FALSE textBox1
textBox1_TextChanged; TRUE FALSE textBox1 textBox1_TextChanged; TRUE FALSE textBox1
textBox1_KeyUp; TRUE FALSE textBox1 textBox1_KeyUp; TRUE FALSE textBox1
textBox1_KeyDown; TRUE FALSE textBox1 textBox1_KeyDown; TRUE FALSE textBox1
textBox1_KeyPress; TRUE FALSE textBox1 textBox1_KeyPress; TRUE FALSE textBox1
textBox1_TextChanged; TRUE FALSE textBox1 textBox1_TextChanged; TRUE FALSE textBox1
textBox1_KeyUp; TRUE FALSE textBox1 textBox1_KeyUp; TRUE FALSE textBox1
textBox1_Leave; FALSE TRUE textBox3 textBox1_Leave; TRUE FALSE textBox3
textBox1_Validating; FALSE TRUE textBox3 textBox1_Validating; TRUE FALSE textBox3
textBox1_Validated; FALSE TRUE textBox3 textBox1_Validated; TRUE FALSE textBox3
textBox3_Enter; FALSE TRUE textBox3 textBox3_Enter; TRUE FALSE textBox3
textBox3_Click; FALSE TRUE textBox3 textBox3_TextChanged; FALSE TRUE textBox3
textBox3_TextChanged; FALSE TRUE textBox3 textBox3_Leave; FALSE TRUE richTextBox1
textBox3_Leave; FALSE FALSE button1 textBox3_Validating; FALSE TRUE richTextBox1
textBox3_Validating; FALSE FALSE button1 textBox3_Validated; FALSE TRUE richTextBox1
textBox3_Validated; FALSE FALSE button1