Using VB.Net
I have main form name as form1 and popup form name as form2
Form1
tab button – for creating mulitple copy of form1 at runtime…
Creation of mulitple from1 at runtime code
form1 code
Dim mEntryForm As form1
mEntryForm = New form1
mEntryForm.Show()
The above code is creating a same copy of form1 at runtime.
Now i want to pass the value from popup form to current activeform
Code for sending the value to form1 from popup form (form2)
form2code
form1.textbox1.text = "100"
The above code is going to form1 textbox, instead of active form (mentryform)
How to solve this problem.
Need Vb.net code help
Although I totaly agree with the comments about your question I ll try to give you a solution
Add a property to your Form2
name smtng like ActiveForm1 as form1
now because I haven’t understand completey your concept:
-> if Form2 is a ShowDialog form then you cannot change the active form1.
You need to set the property ActiveForm1
->if Form2 is not a ShowDialog that means that you can change the active form1
then you need to add this lines of code when a form1 is activated
Now in form2:
I hope that I helped you.