D
drama
information from form1 to form2 one time in holle project
form exitample
-------------
public partial class Form1 : Form
{ public Form2 f2 = new Form2();
public Form1 f1 = new Form1();
string st = "server=localhost;user id=root; password=;
database=nwin; pooling=false";
public MySqlConnection conn = new MySqlConnection();
conn.connectionString=st;
conn.open( ); // connection is opening now
..
..
..
-.*----
- ----
------now FORM2
public partial class Form2 : Form
hot to get that "conn" from form1
form exitample
-------------
public partial class Form1 : Form
{ public Form2 f2 = new Form2();
public Form1 f1 = new Form1();
string st = "server=localhost;user id=root; password=;
database=nwin; pooling=false";
public MySqlConnection conn = new MySqlConnection();
conn.connectionString=st;
conn.open( ); // connection is opening now
..
..
..
-.*----
- ----
------now FORM2
public partial class Form2 : Form
hot to get that "conn" from form1