Memento

Memento

  • NA
  • 111
  • 133.5k

c# winforms - multipleForms task

Jun 10 2012 3:07 PM
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)