Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted
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.
--tim
Posted

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?

C#

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...