窗口之间调用问题,一晚上没弄出来,大家帮帮忙吧
public setForm myMain;
private void okBtn_Click(object sender, System.EventArgs e)
{
//下边这句报错
this.myMain.setLV(this.strUrl.Text,this.strPort.Text,this.strUser.Text,this.strPwd.Text);
}
========报错=============
未处理的“System.NullReferenceException”类型的异常出现在 MyProject.exe 中。
其他信息: 未将对象引用设置到对象的实例。
=========================
用到两个Form: setForm,popForm
setForm中有setLV是用来操作setForm下的listview的