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

推荐订阅源

MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
雷峰网
雷峰网
V
Visual Studio Blog
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
IT之家
IT之家
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
月光博客
月光博客
A
About on SuperTechFans
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale

博客园 - 上善若水-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)    收藏  举报

刷新页面返回顶部