M
Mr.D
I VB6 I did this:
Form2.Text1.Text = Form1.Text1.Text
How do I accomplish this in VB.Net?
Form2.Text1.Text = Form1.Text1.Text
How do I accomplish this in VB.Net?
* "Mr.D said:I VB6 I did this:
Form2.Text1.Text = Form1.Text1.Text
How do I accomplish this in VB.Net?
Herfried K. Wagner said:You will have to store a reference to the other form instance somewhere,
for example in a public property of a module.
* "Mr.D said:I don't quite understand.
Can you give me some example code please?
Herfried K. Wagner said:In Form2:
Private m_MyForm1 As Form1
.
Public Property MyForm1() As Form1
Get
Return m_MyForm1
End Get
Set(ByVal Value As Form1)
m_MyForm1 = Value
End Set
End Property
.
Usage:
Dim f As New Form2()
f.MyForm1 = Me
f.Show()