M
Miro
I am banging my head around something that I think I just dont understand
what I am reading in the helps.
Its gotta be so simple but I just cant figure out what im reading. ( vb
2003 )
Lets say i have Form1 and Form2.
Each form is blank. ( no text boxes or anything )
Very Simple Example: ( i just need a start and then i can modify it and
learn from it to do what i need to do )
On form1_Load
'I have a variable called cHello
Dim cHello As String = "Hello World"
' I call form two.
Dim frmSecondForm As Form = New Form2()
frmSecondForm .ShowDialog()
EndSub
On form 2's load, I want to
MsgBox( cHello ,MsgBoxStyle.OKOnly, "Title Of Box")
close()
EndSub
How do I Properly pass the variable to form2 ?
Thanks,
Miro
what I am reading in the helps.
Its gotta be so simple but I just cant figure out what im reading. ( vb
2003 )
Lets say i have Form1 and Form2.
Each form is blank. ( no text boxes or anything )
Very Simple Example: ( i just need a start and then i can modify it and
learn from it to do what i need to do )
On form1_Load
'I have a variable called cHello
Dim cHello As String = "Hello World"
' I call form two.
Dim frmSecondForm As Form = New Form2()
frmSecondForm .ShowDialog()
EndSub
On form 2's load, I want to
MsgBox( cHello ,MsgBoxStyle.OKOnly, "Title Of Box")
close()
EndSub
How do I Properly pass the variable to form2 ?
Thanks,
Miro