日期:2014-05-17 浏览次数:20873 次
private void btnsearch_Click(object sender, EventArgs e)
{
FrmSingerList singer = new FrmSingerList();
singer.Owner = this;
singer.Show();
}
private void 选择ToolStripMenuItem_Click(object sender, EventArgs e)
{
//A窗体为你FormA的类名
A窗体 formA = this.Owner as FormA;
//txt_singerName为A窗体中“选择歌手”文本框name属性
formA.txt_singerName.Text = dgvsingerinfo.CurrentRow.Cells[0].Value.ToString();
}