If there is a thread related to this one please reply back the url, thx
What i have is Parent form that is the owner of multiple child forms, i can display the child when opening a fresh form[no input on creation] but im having trouble when adding content to the controls[textbox] on the form [mainly text] and trying to display the form...
Method 1 [No content added]
Method 2 [Text added to textbox]
I was thinking maybe its the text which should be added after displaying the form, please correct me if im worng, any help is much apprecieated, j
What i have is Parent form that is the owner of multiple child forms, i can display the child when opening a fresh form[no input on creation] but im having trouble when adding content to the controls[textbox] on the form [mainly text] and trying to display the form...
Method 1 [No content added]
VB.NET:
[size=2]
[/size][size=2][color=#0000ff]Privite[/color][/size][size=2][color=#0000ff]Sub[/color][/size][size=2] spawnNewChild([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Name [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String[/color][/size][size=2], [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] IP [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String[/color][/size][size=2])
[/size][size=2][color=#0000ff]Dim[/color][/size][size=2] c [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]New[/color][/size][size=2] frmChild
[/size][size=2][color=#0000ff]With[/color][/size][size=2] c
.Owner = [/size][size=2][color=#0000ff]Me
[/color][/size][size=2].Name = IP
.Text = Name
.Show()
.txtSend.Focus()
[/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]With
[/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Sub
[/color][/size]
Method 2 [Text added to textbox]
VB.NET:
[size=2]
[/size][size=2][color=#0000ff]Private[/color][/size][size=2][color=#0000ff]Sub[/color][/size][size=2] spawnNewChild([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Name [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String[/color][/size][size=2], [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] IP [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String[/color][/size][size=2], [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] Mess [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]String[/color][/size][size=2])
[/size][size=2][color=#0000ff]Dim[/color][/size][size=2] ownedForm [/size][size=2][color=#0000ff]As[/color][/size][size=2][color=#0000ff]New[/color][/size][size=2] frmChild
[/size][size=2][color=#0000ff]With[/color][/size][size=2] ownedForm
.Name = IP
.Text = Name
.txtReceived.AppendText(Mess + vbCrLf)
[/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]With
[/color][/size][size=2][color=#008000]
[/color][/size][size=2][color=#0000ff]Me[/color][/size][size=2].AddOwnedForm(ownedForm)
[/size][size=2][color=#0000ff]With[/color][/size][size=2] ownedForm
[/size][size=2][color=#008000]
[/color][/size][size=2].Show()
[/size][size=2].txtSend.Focus()
[/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]With
[/color][/size][size=2][color=#0000ff]End[/color][/size][size=2][color=#0000ff]Sub
[/color][/size]
I was thinking maybe its the text which should be added after displaying the form, please correct me if im worng, any help is much apprecieated, j
Last edited: