The code using it can peek at the form's public variables and that includes the controls. So you can do something like this:
Dim frm As New GetDataForm
frm.ShowDialog()
Debug.WriteLine(frm.txtFirstName.Text)
Debug.WriteLine(frm.txtLastName.Text)
You can also set the form's DialogResult property to let the calling code know if the user clicked OK or Cancel.
Take a look at pages 302-303.
Rod
RodStephens@vb-helper.com
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm
Sign up for the free
VB Helper Newsletters at
http://www.vb-helper.com/newsletter.html