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

推荐订阅源

N
News and Events Feed by Topic
A
About on SuperTechFans
D
DataBreaches.Net
量子位
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss
U
Unit 42
M
MIT News - Artificial intelligence
小众软件
小众软件
博客园 - Franky
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Help Net Security
Help Net Security
Recorded Future
Recorded Future
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
S
Security @ Cisco Blogs
MongoDB | Blog
MongoDB | Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
IT之家
IT之家
L
LINUX DO - 热门话题
H
Hacker News: Front Page
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 叶小钗
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
S
Schneier on Security
Scott Helme
Scott Helme
Microsoft Security Blog
Microsoft Security Blog
Attack and Defense Labs
Attack and Defense Labs
T
The Exploit Database - CXSecurity.com
C
Cisco Blogs
Y
Y Combinator Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tenable Blog
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
H
Hackread – Cybersecurity News, Data Breaches, AI and More
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
V2EX
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Know Your Adversary
Know Your Adversary

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