frida Posted February 16, 2004 Posted February 16, 2004 hi, i'm new in .net, i'm using visual c#.net and sorry but my english isn't very good. this is the problem i'have my principal form and i have multiple mdichilds forms, and i need to call one form from another form, in fact i can see the form with it's in form1: form2 nueva=new form2(); nueva.Show(); i have a variable in form2 and need to manipulate this one in the form1 how can i do this? thanks a lot!! Quote
Spiel79 Posted February 17, 2004 Posted February 17, 2004 Hi frida, Suppose that in form 2, the variable which you want is stored in TextBox5. And lets say you want to assign the value to a variable in form 1 known as teststr. You can use the following code in form 1 to allow it to be manipulated: 'Type this code in form 1: Dim teststr As String teststr = neuva.TextBox5.Text Hope that helps you. Quote
frida Posted February 17, 2004 Author Posted February 17, 2004 hi spiel79, thanks that help me!!! Quote
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.