7
Answers

c# winforms - multipleForms task

Memento

Memento

12y
4.1k
1
dsUni = new DataSet();
dsUni.ReadXml(pathDesc);
frm02.dgv02.DataSource = dsUni.Tables[0];
frm02.ShowDialog(); // this all works well

But - frm02.ClosingEvent:
dsUni.WriteXml(pathDesc);
error: The names dsUni and pathDesc does not exist in the current context

What should i write and WHERE - to access all the controls and all variables from frm01 to frm02 and ViceVersa?
Answers (7)