C# 写的toolStripLabel1 Click事件 点击后没反应啊private void toolStripLabel1_Click(object
private void 添加toolStripLabel1_Click(object sender, EventArgs e){
frmAddAttendance addattendance = new frmAddAttendance();//创建人员考勤窗体对象
addattendance.ShowDialog();//显示模式窗体
}
-----------------------------------
private void 删除toolStripLabel3_Click(object sender, EventArgs e)
{
if (dataGridView1.SelectedCells.Count > 0)
{
string id = dataGridView1.SelectedCells[0].Value.ToString();//得到ID信息
string deletesql = "delete from tb_attend where employeeID='" + id + "'";//创建SQL字符串
if (operate.OperateData(deletesql) > 0)
{
MessageBox.Show("删除成功", "提示",//弹出消息对话框
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else
{
MessageBox.Show("请选择要删除的信息", "提示",//弹出消息对话框
MessageBoxButtons.OK, MessageBoxIcon.Information);
return;//退出事件
}
}
。。。。。。。。。。。。。。。
就是整个toolstrip 里点击都没反应 难道不是上面的错误???? --------------------编程问答-------------------- 你看看是否绑定了事件 --------------------编程问答-------------------- 打断点看是否进事件了,么有进事件就看你的事件是否挂载了。。。 --------------------编程问答--------------------
肿么看啊 我菜鸟啊 我就是照着写了一个简单的添加、删除类的小系统 大侠能说明确点吗?? --------------------编程问答--------------------
有点高深啊 能具体到那块程序吗??
补充:.NET技术 , C#