So right now my project has a few custom dialogs that do things like prompt the user for his birthday, or whatever. Right now they're just doing things like setting a this.Birthday
property once they get an answer (which is of type DateTime?
, with the null indicating a "Cancel"). Then the caller inspects the Birthday
property of the dialog it created to figure out what the user answered.
My question is, is there a more standard pattern for doing stuff like this? I know we can set this.DialogResult
for basic OK/Cancel stuff, but is there a more general way in Windows Forms for a form to indicate "here's the data I collected"?