private void btn_justest_Click(object sender, EventArgs e)
{
using (var myForm = new FormShowResult())
{
myForm.Show();
textBoxNameTest.Text = FormShowResult.TheValue;
}
}
在表格 2 中:
public string TheValue
{
get { return richtb_Show.Text; }
}
问题是出现错误“非静态字段、方法或属性需要对象引用”如何解决
我的目的是调用给Form2的Function的参数设置一个值,并在启动Form2时加载该函数。