S
Steve
Hello,
Here is my scenario. I have a MDIForm, and 2 Child forms (ChildForm1 and
ChildForm2). The child forms can only be opened by their own toolbar icon on
the MDIForm. When I open ChildForm1, I have a datagrid that I may want to
search for a specific record from time to time. When I want to search for a
record, I click on the toolbar for ChildForm2 which basically gives me a
textbox for input. Once I click the OK button on ChildForm2, I want to close
that down, and move to the particular record in the grid that has that
information.
Now, my MDIForm is being referenced in the constructor of ChildForm2
already, but this is where I get confused. There are a lot of examples out
there for my problem, IF I had accessed ChildForm2 from ChildForm1. But
since I am opening ChildForm2 from the MDIForm, I don't know what to do.
What I want to do is run the search code directly from ChildForm2 after
the OK button on ChildForm2 has been clicked, and then close the form, and
move to that record on the grid in ChildForm1. So, I'm guessing what I need
to do is pass the dataset (or access it in any way) from ChildForm1 to
ChildForm2 so I can do the search, then move back to ChildForm1. Sorry about
any confusion, and thank you in advance.
Steve
Here is my scenario. I have a MDIForm, and 2 Child forms (ChildForm1 and
ChildForm2). The child forms can only be opened by their own toolbar icon on
the MDIForm. When I open ChildForm1, I have a datagrid that I may want to
search for a specific record from time to time. When I want to search for a
record, I click on the toolbar for ChildForm2 which basically gives me a
textbox for input. Once I click the OK button on ChildForm2, I want to close
that down, and move to the particular record in the grid that has that
information.
Now, my MDIForm is being referenced in the constructor of ChildForm2
already, but this is where I get confused. There are a lot of examples out
there for my problem, IF I had accessed ChildForm2 from ChildForm1. But
since I am opening ChildForm2 from the MDIForm, I don't know what to do.
What I want to do is run the search code directly from ChildForm2 after
the OK button on ChildForm2 has been clicked, and then close the form, and
move to that record on the grid in ChildForm1. So, I'm guessing what I need
to do is pass the dataset (or access it in any way) from ChildForm1 to
ChildForm2 so I can do the search, then move back to ChildForm1. Sorry about
any confusion, and thank you in advance.
Steve