Reason for my vote of 3
That's basically the same as my original proposal: to use .Equals(true)
The problem with using constructor in the same line as ShowDialog is that you don't have any reference to the dialog inside the "if" block, so you cannot gather any data from it. This will work just in dialogs like messageBox with yes/no or ok/cancel.
Last Visit: 31-Dec-99 19:00 Last Update: 20-Dec-14 4:23