Tranfer Object value a another object in a different form.

  • Thread starter Thread starter Manuel Canas
  • Start date Start date
M

Manuel Canas

Hi there,

How can I transfer the value of an control to another control in another
form?

Let's say I have a textbox in form1 with a value of 30 in it, now from a
click of a button, the 30 would be copied to a textbox in another active
form.

Some advices, hints on how to accomplish this.

Thanks very much.

Manuel
 
Manuel,

Do you mean this?

Cor

\\\
Private frm As New Form2
Private Sub Button1_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles Button1.Click
frm.TextBox1.Text = Me.TextBox1.Text
frm.Show()
frm.BringToFront()
End Sub
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top