Thanks for your sample code.
Do I need to add any code in order to use mypublic
function?
After I dim frm, frm cannot get its mypublic function.
It will have blue underline.
What is mypublicInform1? And,How form1 can get value
returned
from form2? I mean what should I dim for variable in order
to capture
result values from form2.
Thanks in advance.
-----Original Message-----
Hi Sam,
As a dialogform2
\\\
dim frm as new form2
frm.mypublic = "Sam"
frm.showdialog
mypublicInform1 = frm.mypubic
frm.dispose
/// I have two classes.
I want to pass value from Form1.vb to Form2.vb.
And then return the calculated value from Form2.vb.
.