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
In winform, it will be closing.
In Wisej framework, it not close.
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.
Please login first to submit.