I hook up with Gregory. It depends...
The main difference is whether you show Form2 modally (ShowDialog)
or modeless (Show). If Form2 is modal, you can still access the controls
on Form2 from Form1 after Form2 has been closed. Example:
using f2 as new form2
if f2.showdialog = dialogresult.ok
me.textbox1.text = f2.combobox1.text
end if
end using
Otherwise I could write a lot more, but it depends on what exactly
your goal is. As Gregory wrote, you can raise an event inside Form2
and handle it inside Form1. You can access the controls of Form2
or you can add properties to Form2 that return what you need.
Or the data can be passed as arguments of the event handler.
...
Here's a walkthrough for dialog boxes:
http://msdn.microsoft.com/en-us/library/cakx2hdw.aspx