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

推荐订阅源

Jina AI
Jina AI
C
Cybersecurity and Infrastructure Security Agency CISA
美团技术团队
J
Java Code Geeks
博客园 - 聂微东
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
雷峰网
雷峰网
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
The Cloudflare Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
IT之家
IT之家
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
The Exploit Database - CXSecurity.com
I
Intezer
V
Vulnerabilities – Threatpost
Simon Willison's Weblog
Simon Willison's Weblog
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
T
Tenable Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Project Zero
Project Zero
H
Hacker News: Front Page
SecWiki News
SecWiki News
L
LINUX DO - 最新话题
Hacker News: Ask HN
Hacker News: Ask HN
Forbes - Security
Forbes - Security
C
CERT Recently Published Vulnerability Notes
T
Threatpost
N
News and Events Feed by Topic
Webroot Blog
Webroot Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
V2EX - 技术
V2EX - 技术

博客园 - 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