Suppose you have a registration form with textboxes to hold a StudentId and a CourseId. Also provided is a button which opens a second form which allows you to lookup a StudentId using by their first or last name.
How return the StudentId from the search form, and load it into the StudentId textbox on the registration form?