1
Vote

MessageBox closed even when ClickPreview cancelled

description

Tools.WindowsT.IndependentT.MessageBox.MessageBoxButton.ClickPreview when setting e.Cancel to true message box closes though.

comments

Dzonny wrote Mar 14, 2009 at 8:54 PM

Fixed. Caused by using Button.DialogResult. It will not be used any more.

** Closed by Dzonny 3/14/2009 12:48 PM

Dzonny wrote Mar 14, 2009 at 8:54 PM

Dzonny wrote Mar 23, 2009 at 4:06 PM

Closed. Previously re-opened in order to assign release.

** Closed by Dzonny 3/14/2009 12:58 PM

Dzonny wrote Mar 23, 2009 at 4:06 PM

Not fully fixed. Need edit line 444
Private Sub Button_ResultChanged(ByVal sender As MessageBox.MessageBoxButton, ByVal e As IReportsChange.ValueChangedEventArgs(Of DialogResult))
       DirectCast(sender.Control, Button).DialogResult = sender.Result
        If e.OldValue = MessageBox.CloseResponse Xor e.NewValue = MessageBox.CloseResponse Then EnsureCancelButton()
    End Sub