I'm looking for simple examples of a dialog box form implementation where a user fills out the form and then after the form dialog box exits the calling routine can still call static methods on the dialog box to access the filled out data.

In other words unless somebody has a better idea I think I'm looking for an example of a static dialog box implementation with static methods and members. My current approach based upon other GUI implementations is not working.