I need to pass a string from one form to another.. My guess is I am making this more difficult then it is but I cannot figure out how to do this.
Printable View
I need to pass a string from one form to another.. My guess is I am making this more difficult then it is but I cannot figure out how to do this.
To make it short, you may define a property in form2, lets say sData and then
VB Code:
Dim frm as New Form2 frm.sData="Whatoever" frm.Show
Can you just reference Form2.stringVariable in Form1? stringVariable would have to be a module level variable.
Or make it a global variable, maybe in a module. At least in VB6 that'd be a way to do it.