我的正是ShowDialog()啊...这点应该不是...
呵呵..真得谢谢你呢..陪我聊了一天!!!
呵呵..真得谢谢你呢..陪我聊了一天!!!
msdn == 葵花宝典!!!
QQ:122768959
我是這樣想的打個比方妳拓展一下
form1裡這樣寫:
Form2 frm2 = new Form2();
this.Hide();
frm2.ShowDialog(this);
this.Show();
textBox1.Text = frm2.getData;
form2裡這樣寫:
private string aaa;
public string getData
{
get
{
return aaa;
}
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
aaa = dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString();
this.Close();
}
沒有必要把控件設置成PUBLIC