2个回答
展开全部
hide()把form隐藏了,你要触发什么事件,就先在form类下申明一个方法,然后,在hide()里面添加事件关联。如:
//申明
private void createCode_Click(object sender, MouseEventArgs e)
{
}
//调用
private void DBTree_MouseUp(object sender, MouseEventArgs e)
{
myItem6.MouseUp += new System.Windows.Forms.MouseEventHandler (this.createCode_Click);
}
//申明
private void createCode_Click(object sender, MouseEventArgs e)
{
}
//调用
private void DBTree_MouseUp(object sender, MouseEventArgs e)
{
myItem6.MouseUp += new System.Windows.Forms.MouseEventHandler (this.createCode_Click);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询