jesus4u Posted April 21, 2003 Posted April 21, 2003 In C# how can I access a DataSet on Form1 from Form2? Thanks Quote Alex Polajenko
Leaders quwiltw Posted April 21, 2003 Leaders Posted April 21, 2003 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. Quote --tim
aewarnick Posted April 27, 2003 Posted April 27, 2003 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? Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.