Declare the textbox as public in Form2. Or wrap the textbox property that
you want to access acorss the form as public. For example, to wrap the Text
property of the textbox as a property of Form2, have this in Form2:
public string TextBoxText
{
get {return TextBox1.Text;}
set {TextBox1.Text = value;}
}
Then from Form1,
Form2 x = new Form2();
x.TextBoxText = "My Text";
HTH.
"Brian Underhill via DotNetMonster.com" <u15083@uwe> wrote in message
news:566ba240aa8e0@uwe...
I have a textbox in form2 that i need to use in form1. How do I get acces
to
it? I am having trouble finding an example on this...probably due to
inexperience
thanks
brian
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...neral/200510/1