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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.