D
Dan Tallent
I have an application I'm working on where one form will open another.
This newly opened form needs to return a value based on the users actions.
My forms are not modal. I have seen discussions about overridding the
DialogResult, however I believe this will only work in a modal form
situation.
I have code where I've added a custom event to the child form called
ReturnValueSet. The form that opens this form can then subscribe to this
event and trap the value that was set if it wishes. The child form then
must be coded to raise this event when it is closing. This method works,
but I would prefer to use a more standard approach is there is one.
Does anyone have suggestions?
Thanks
Dan
This newly opened form needs to return a value based on the users actions.
My forms are not modal. I have seen discussions about overridding the
DialogResult, however I believe this will only work in a modal form
situation.
I have code where I've added a custom event to the child form called
ReturnValueSet. The form that opens this form can then subscribe to this
event and trap the value that was set if it wishes. The child form then
must be coded to raise this event when it is closing. This method works,
but I would prefer to use a more standard approach is there is one.
Does anyone have suggestions?
Thanks
Dan