D
Daniel
what do you have to do in a C# dialog so that it returns to ShowDialog as
DialogResult.OK ?
DialogResult.OK ?
Nicholas Paldino said:Daniel,
Before the dialog is closed, set the DialogResult property to
DialogResult.OK.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Daniel said:what do you have to do in a C# dialog so that it returns to ShowDialog as
DialogResult.OK ?
Stoitcho Goutsev (100) said:Hi
Actually, setting the DialogProperty will close the dialog. The other approach
would be to set the OK button DialogRestultProperty to DialogResult.OK. In
this case your don't have to do anything. When the user clicks on the button
the framework will set dialog's DialogResult for you thus, close the dialog.
--
HTH
Stoitcho Goutsev (100) [C# MVP]
Nicholas Paldino said:Daniel,
Before the dialog is closed, set the DialogResult property to
DialogResult.OK.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Daniel said:what do you have to do in a C# dialog so that it returns to ShowDialog as
DialogResult.OK ?
Hmm, Im still trying to decide on the best methodology here.Stoitcho said:Hi
Actually, setting the DialogProperty will close the dialog. The other
approach would be to set the OK button DialogRestultProperty to
DialogResult.OK. In this case your don't have to do anything. When the user
clicks on the button the framework will set dialog's DialogResult for you
thus, close the dialog.