This is a winform C# question. I have a textbox with a validating event listener to validate the content of the textbox. Say, the textbox doesn\'t accept negative values. I
I solved this issue by setting the form CausesValidation property to False. The form now closes normally when I click the X button.