Form.DialogResult

0
0

Hi Wisej,

I have a click event of  OK button:

Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Me.DialogResult = DialogResult.OK
End Sub

In winform, it will be closing.

In Wisej framework, it not close.

Thank you

  • You must to post comments
0
0

It works as intended.

WinForms closes only modal dialogs with the AcceptButton and doesn’t close non modals but still fires a click, which is an inconsistent behavior that we fixed in Wisej. Assigning the AcceptButton and CancelButton will fire the click when pressing Enter and Escape and will assign the DialogResult of the buttons automatically. But closing or not the form is up to your code.

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.