Hello,
How can I do?
I have two forms (form1 and form2) open.
if I push a button on form2, I want that a value goes to a textbox on form1.
Thank you
Public Class Form2
Inherits System.Windows.Forms.Form
#Region " Codice generato da Progettazione Windows Form "
.......
.......
#End Region
Dim frm As New Form1()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
frm.Text1.Text = "PROVAR"
frm.Refresh()
End Sub
End Class
How can I do?
I have two forms (form1 and form2) open.
if I push a button on form2, I want that a value goes to a textbox on form1.
Thank you
Public Class Form2
Inherits System.Windows.Forms.Form
#Region " Codice generato da Progettazione Windows Form "
.......
.......
#End Region
Dim frm As New Form1()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
frm.Text1.Text = "PROVAR"
frm.Refresh()
End Sub
End Class