Link to home
Start Free TrialLog in
Avatar of garyinmiami2003
garyinmiami2003Flag for United States of America

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?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What .NET version are you using?

Bob
Avatar of garyinmiami2003

ASKER

2003
SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dim frm As New Form2


        frm.ShowDialog(Me)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
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