日期:2014-05-17 浏览次数:20437 次
public class Form1 : Form
{
......
private void SearchButton_Click(...)
{
DataSet record = QueryData(...);
Form2 form2 = new Form2(record);
form2.ShowDialog();
}
......
}
public class Form2 : Form
{
private DataSet record;
public Form2(DataSet rd)
{
this.record = rd;
}
public override void OnLoad(...)
{
this.TextBox1.Text = rd.BlaBla;
}
}