Accessing DataSet from A While in B.

Add a reference to Form1 on Form2 and expose the DataSet through a public property on Form1. There are perhaps better ways but I think I'd need more insight into what you doing than the one-liner you've provided.
 
That is something I have been wondering too. I can always easily access public properties on a form2 that form1 created but I cannot do the reverse without static variables. Public does not even work. They must be static.

Say for instace I wanted to write in a textbox from form2, I cannot access it from that form directly. How can I do that?
 
Back
Top