Memento

Memento

  • NA
  • 111
  • 98.2k

Two Forms and Controls Interaction

Jun 12 2012 2:51 PM
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?

Answers (5)