private void checkBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar==13)
{
this.checkBox1.Checked = true;
}
} private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Test");
}这样 按ENTER
就只有 MessageBox.Show("Test");了
能不能 先有 this.checkBox1.Checked = true; 再 MessageBox.Show("Test");呢
那位能给点意见吗 谢谢回复
{
if (e.KeyChar==13)
{
this.checkBox1.Checked = true;
}
} private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Test");
}这样 按ENTER
就只有 MessageBox.Show("Test");了
能不能 先有 this.checkBox1.Checked = true; 再 MessageBox.Show("Test");呢
那位能给点意见吗 谢谢回复
解决方案 »
- 怎么把一个数组中的数据高效的添加到list中?
- 简单的随机数问题!!!。。。。。。。。。。。。。。。。。。。。
- 进程间通信问题
- 修改密码的问题
- 新手求救,如下錯誤如何解決.應該如何調試.謝謝.
- [请教、散分]我想写一个程序,目的是运行后始终占用80%左右的CPU使用量,有谁知道怎么做么?
- 怎样使datagrid的某个数据列成为可编辑列?
- 如何让VS显示"最近使用的文档"?
- 请问已经申请一个域名了,如何将这个域名放在自己的电脑中使用,高手?谢谢了!!!!
- 用100分来扩展我的DataGrid
- WinFrm中Combobox的DropDownStyle属性赋值为DropDownList,如何让Combobox的Text赋的值显示!
- C#.net 2005 如何根据字符串打开窗体
private void checkBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
checkBox1.Checked = true;
EventArgs xe = new EventArgs();
btn_ShowMess_Click(sender, xe);
//return;
}
} private void btn_ShowMess_Click(object sender, EventArgs e)
{
MessageBox.Show("Test");
}
这样吧