很简单的C#问题 把文本框一的字输出到文本框2里面,当按回车键的时候将文本框1的内容整行输到文本框2中,类似于QQ聊天还有我想弱弱的问一下,有没有e.keyChar这个东西啊,我上课看我们老师写不明白是什么意思 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void textBox1_KeyPress(object sender, KeyPressEventArgs e){这里才有e.KeyChar} private void textBox1_KeyDown(object sender, KeyEventArgs e) { if(e.KeyData==Keys.Enter) { textBox2.Text = textBox1.Text; } }//或者 private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar==13) { textBox2.Text = textBox1.Text; } } C#写入MDB(access)问题。好多同学都不会,希望哥哥姐姐们不吝赐教。 如何使鼠标事件失效 微软企业库中关于接收insert语句返回结果的问题 如何降低需要动态换图控件的内存占用? 再开100分请教网页中拖放图片显示在窗体中的PictureBox问题 如何用vs.net2003将sql的二进制记录读取为word文件? 为什么一个类中只可以有一种索引器?? c#中怎么用socket连接服务程序啊,谁能给个简单的网络程序例子吗?? OPC编程 关于参数传递以及获取事件的问题(在线等待) 请各位大侠教教小弟 repeater,datalist动态绑定列??急等!
{
这里才有e.KeyChar
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyData==Keys.Enter)
{
textBox2.Text = textBox1.Text;
}
}
//或者 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar==13)
{
textBox2.Text = textBox1.Text;
}
}