5
Answers

Two Forms and Controls Interaction

Ask a question
Memento

Memento

12y
2.5k
1
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)