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

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
博客园 - 叶小钗
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
Vercel News
Vercel News
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
美团技术团队
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
F
Fortinet All Blogs
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
H
Heimdal Security Blog
有赞技术团队
有赞技术团队
The Cloudflare Blog
S
Secure Thoughts
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
Google DeepMind News
Google DeepMind News
Schneier on Security
Schneier on Security
N
News and Events Feed by Topic
小众软件
小众软件
C
Cybersecurity and Infrastructure Security Agency CISA
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - Franky
T
Tenable Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
量子位
Google DeepMind News
Google DeepMind News
Help Net Security
Help Net Security
雷峰网
雷峰网
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyberwarzone
Cyberwarzone
S
Securelist
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
P
Proofpoint News Feed
D
Darknet – Hacking Tools, Hacker News & Cyber Security
I
InfoQ
Spread Privacy
Spread Privacy
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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