Form1主窗体:
private void button1_Click(object sender,EventArgs e)//单击事件,打开子窗体
{
Form2 frm = new Form2(new SetVisiableHandler(SetVisiable));
frm.Show();
}
private void SetVisiable()
{
dataGridView1.Rows.Add("123","456","789");
}
Form2子窗体:
public void butten1_Click(object sender,EventArgs e)
{
if(this.m_setVisiable != null)
{
this.m_setVisiable();
}
}
新闻热点
疑难解答