Hello all i have problem with move text to another Form
to open Form1 i wrote this code
Dim frmCollection = System.Windows.Forms.Application.OpenForms
If frmCollection.OfType(Of Form1).Any Then
frmCollection.Item("Form1").Activate()
Else
Dim frm As New Form1
ChildOpen(frm)
End If
in FrmBeliOld i Have label and button
'this code for open Form CrSupplier
Private Sub RadButton1_Click(sender As Object, e As EventArgs) Handles RadButton1.Click
CrSupplier.ShowDialog()
End Sub
in CrSupplier i want to move text to frmBeliOld, i use this code. but its nothing happen.
(this code doesn't want to work)
Private Sub BtnOK_Click(sender As Object, e As EventArgs) Handles BtnOK.Click
Form1.Label1.Text = "test"
Form1.Label2.Text = "nama"
End Sub
or use this code
dim frm as new Form1
Frm.Label1.Text = "test"
Frm.Label2.Text = "nama"
How to solve this problem
Thanks before
Hengky