Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!!

Posted

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.

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...