Form2 f2 = new Form2(ref int x); f2.ShowDialog();
int[] Gx=new int[2]; public Form2(ref int[] x) { InitializeComponent(); for(int i=0;i<2;i++) Gx[i]=x[i]; }
private void method2() { //i want to change value of x in this method Gx is known //but x is not known //How can i send x back to Form1 from here,i also want to do the change of x in this method }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)