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

推荐订阅源

T
The Blog of Author Tim Ferriss
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
有赞技术团队
有赞技术团队
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
博客园_首页
Y
Y Combinator Blog
V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Help Net Security
P
Proofpoint News Feed
B
Blog
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - 上善若水-water

【转】- 回车键触发Button按钮事件 【转】- 按回车键实现登录-- JS实现 【转】silverlight中文英文版本不匹配问题解决方法 【转】-ajax中Accordion动态生成菜单代码 【转】大白话之C#系列-- C#委托与事件 【转】【收藏】- LINQ体验(7)——LINQ to SQL语句之Group By/Having和Exists/In/Any/All/Contains 【转】十天学会php【之前收藏,出处未知】 【转】仿google首页下端图片文字导航下载-【之前收藏,出处未知】 【转】Visual Studio 快捷键 【转】10 个强大的开源 Web 流量分析工具 【转】ubuntu下PHP环境搭建 安装HDwiki 【转】 推荐几款功能强大的PHP编辑器 【转】.NET开源项目介绍及资源推荐:日志记录 【转】【ObfusPro 2010】 .NET混淆保护工具发布 【转】使用Dotfuscator混淆处理融入DotNet ClickOnce发布(超经典,测试已通过,转发的,吐血推荐,不看也收藏了)简称:混淆发布 【转】工作感言:任务分配及管理 - 上善若水-water - 博客园 OpenExpressApp 框架 ,是一个组合体 【转】Sandcastle----强大的C#文档生成工具 JS 显示/隐藏 的例子 - 上善若水-water
TextBox 的 KeyEventArgs事件触发
上善若水-water · 2012-11-29 · via 博客园 - 上善若水-water

asp:TextBox  的 KeyEventArgs事件触发

C# code

  privatevoid txt123_KeyDown(object sender, KeyEventArgs e)

        {

if (e.KeyCode == Keys.Enter)

            {

                btn.PerformClick();

            }

        }

----------------------------

private void text_KeyPress(object sender, KeyPressEventArgs e)

{

if(e.KeyChar==13)
{

...

}

}

posted @ 2012-11-29 10:07  上善若水-water  Views(423)  Comments(0)    收藏  举报

刷新页面返回顶部