'Below the public Class...
Private _passedText As String
Public Property [PassedText]() As String
Set(ByVal Value As String)
_passedText = Value
'so you have label text named LAbel1
Before you open the child set
'....then When you open then child try (let's say in toolstrip Button)
Dim ChildForm As New Form 'or an existing form
ChildForm = FormWindowState.Normal
ChildForm.MdiParent = Me
'Then in a label control in chikd Form (Named ChildLabel)
ChildLabel.Text=PassedText 'And there you go
Open in new window
public class subForm
public subForm(string param1)
this.m_param1 = param1;
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
Public Sub subform(ByVal param1 As String)
Me.m_param1 = param1
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.