On the Form1 I have two buttons.
Both buttons load Form2, but:
- when loaded by the btn1, dgv(on the Form2) should have ds1 as DataSource.
- when loaded by the btn2, dgv(on the Form2) should have ds2 as DataSource.
Also - Fom2_Closing Event should run this:
Form1.Text = "323";
Form1.btn1.Visible = false;
Problem in my tryings is properly establishing the relations between forms..
Could somebody help, please?
Loading

FroglegPosted Jun 13, 2012, 3:33 AM
MementoPosted Jun 13, 2012, 4:09 AM
Frog,
Is it the truth that the same brain invented the Chess and C# ?
ThanksMan !
MementoPosted Jun 13, 2012, 1:22 AM
Huge difference comparing to other "helping" pages.
One day, I hope, I could give you money, instead clicking on
Is there a rellevant place where I could write my impressions (site's founder or similar)?
Both solutions are so different, and both - Works.
Just a question to Frog:
How about if I instead: Form1.Text = "323";
want: Form1.Text = Form2.dgv2.CurrentCell.Value.ToString();
I probably need to declare somewhere this string as public, and tried on both forms but got error - Index is out of Range....
FroglegPosted Jun 12, 2012, 5:21 PM
VulpesPosted Jun 12, 2012, 4:31 PM
f1.f2 = null;