Visual Studio 2005.
Here is what I used on parent form to launch the child form:
'============== ====
Dim UserDefinedForm As New diagUserDefined
UserDefinedForm .Show()
UserDefinedForm .txSelected.Tex t = "Passed from Parent"
'============== ============
It works fine and on diagUserDefined win form, the string shows up. But when I need to get a string...
User Profile
Collapse
-
Pass a value from child Win form back to textbox of parent Win Form
I have Form1 launches Form2. On Form2, user will enter input (a string).
When I click OK to close Form2, I need to have that string value populated TextBox1 on Form1 (the parent form).
I only find clues on doing the other way (passing from parent to child), which I have already been doing fine. But don't know how to let child form recognize (already opend/launched) parent form to access control there.
...
No activity results to display
Show More
Leave a comment: