Passing parameters to forms in VB.Net
Posted on 2003-10-30
I have a form (Form2) that I want to pass ByRef (from Form1) a parameter to and have the form (Form2) modify the parameter. Is this possible??? Below is my own small script of the action (it does not represent the actual code).
Thanks in advance for any help,
' Declare Form1
Dim strName As String
strName = "John"
Dim NewForm2 As New Form2(strName)
' strName should have changed from "John" to "Charley"
' Declare Form2
strPrmNewName = "Charley"