In VB.NET to pass something from one form to another I would doHow would I do the same thing in C#?vb.net Code:
'on Form1 Form2.TextBox1.Text = TextBox1.Text
Printable View
In VB.NET to pass something from one form to another I would doHow would I do the same thing in C#?vb.net Code:
'on Form1 Form2.TextBox1.Text = TextBox1.Text
Ok, in doing some searching on this topic, I discover that in .NET, controls are declared as Friend (in VB) or private (in C#) by default.
However, I don't know how to use this information to get what I need. Would I create a property or class for this?
This is quite problematic in C# to be honest, and I myself have been looking for this for quite a while.
I should have an example of it, let me dig it up!
Edit:
Here are three ways of doing it.
I'll see if I can find more.
Thanks for the link. I just glanced at it, but it looks like just what I'm after. I"m going to go read it all right now.
No problems!
I had some difficulty with this during the summer but then I found that link and everything went smoothly afterwards. (:
Cheers,
Zolomon
Ok, using one of the examples in Zoloman's link, I got it to work.
Thanks again.