C validating canceleventargs
I have some code that checks and makes sure that when the users enters in the field an integer from 1 - 10 has to be input.
The event handler receives an argument of type System. Cancel Event Args containing data related to this event.Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange In a Win Form I'm doing initial validation in the Form. To make the code short only three fields are shown in the code.That, plus I had some presumption - don't ask why - that the event handler delegates were invoking their referenced event handling methods asynchronously. That _would_ however make a difference in terms of the timing involved in the publisher giving any/all subscribers a chance to set the value of .Cancel, with the subscriber needing block until any/all subscribers returned.