DialogResult

  • Thread starter Thread starter Angel Soft
  • Start date Start date
A

Angel Soft

sorry, I have a stupid question
I open a form with ShowDialog because I need a value from this form.
how do I set the result value of this "dialog" form?
DialogResult property do not accept any value.

Tx

Nick
 
Angel Soft said:
I open a form with ShowDialog because I need a value
from this form.
how do I set the result value of this "dialog" form?
DialogResult property do not accept any value.

Add an additional property to the form that holds the return "value".
Inside your form you set the property and check the property when
'ShowDialog' returns.
 
Back
Top