I have two forms in my project Form1 and Form2
I have created a form dynamically to view through menus. It works fine.
Set frmx = Forms.Add(form1)
Here i can see form1 in run time. Within form1 i am opening form2.
ie on a command click
I works fine. But now from form2 i need to send a variable to populate into Frmx which is dynamically created.
eg. Form2 - i have a variable called empname
In frmx (dynamically created) have a text box TxtEmpname
now during run time in form2 if i use
frmx.txtempname = empname
I get the error message object not found. Ie vb cannot find frmx.