garyinmiami2003
asked on
Passing Data from search form back to main form
I have a vb.net Windows app that has 2 forms: Main and search. The form "main" is using a tab control with 7 active tabs. An instance of the form "Search" can be created from many points. The search pulls data from a customer table into a grid. User then selects the one row and populates controls in 2-3 tabs on mainform, and closes leaving the main form as only one open. My questions:
How can I populate the controls on the mainform from the search form?
What envent back on the mainform is a good one to do anything from that will fire when the search form closes?
Can you give me an example of what to do?
How can I populate the controls on the mainform from the search form?
What envent back on the mainform is a good one to do anything from that will fire when the search form closes?
Can you give me an example of what to do?
ASKER
2003
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dim frm As New Form2
frm.ShowDialog(Me)
frm.ShowDialog(Me)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am already a happy person. Looks like I may have a follow up. I'm doing something wrong in implementation. Many thanks to you(you both) for your help
You're welcome .. but what's your implementation problem?
ASKER
Let me fiddle with it a little, Learn what I can...Maybe it will clear up for me. If not I'll add a comment
Bob