Form1 f1 = new Form1()在Form2中调用: int acount ; f1.showF(fp,flter,c, pb, lbl, out acount);
form1中 int acount=0; public void showF(string fp,string flter,int c, PictureBox pb, Label lbl, out int acount) Response.Redirect("Form2.aspx?acount="+acount);//传递参数 form2中 int count=(int)Request["acount"];//接受参数
在Form1中: Form1 f2 = new Form1(); f2.f1 = this; f2.Show();在Form2中: Form1 f1 = null; int acount ; f1.showF(fp,flter,c, pb, lbl, out acount); //MessageBox.Show(acount.ToString());
int acount ;
f1.showF(fp,flter,c, pb, lbl, out acount);
int acount=0;
public void showF(string fp,string flter,int c, PictureBox pb, Label lbl, out int acount)
Response.Redirect("Form2.aspx?acount="+acount);//传递参数
form2中
int count=(int)Request["acount"];//接受参数
Form1 f2 = new Form1();
f2.f1 = this;
f2.Show();在Form2中:
Form1 f1 = null;
int acount ;
f1.showF(fp,flter,c, pb, lbl, out acount);
//MessageBox.Show(acount.ToString());