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


FroglegRank #1,020 · 1.9K reputationPosted Jun 12, 2012, 11:33 PM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 12, 2012, 12:31 PM EDT
f1.f2 = null;
FroglegRank #1,020 · 1.9K reputationPosted Jun 12, 2012, 1:21 PM EDT
Memento104 reputationPosted Jun 12, 2012, 9:22 PM EDT
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....
Memento104 reputationPosted Jun 13, 2012, 12:09 AM EDT
Frog,
Is it the truth that the same brain invented the Chess and C# ?
ThanksMan !