I wrote handlers for checking the events of form controls. How can I initiate verification of all elements in the form?
You can use the ValidateChildren () method .
I think you can achieve this by calling ValidateChildrenin the form.
ValidateChildren
You should be able to handle the Closing event on the form, and there they call the Check call . Based on the return value, you can either close the form or close the form closing.
Source: https://habr.com/ru/post/1796011/More articles:Using XmlReader in .NET for XSLT Converting Very Large XML Files - c #ASP.NET user control, can template fields have attributes? - asp.netmysqli INSERT anomaly - phpStrange asp.net mvc error - asp.net-mvcAnt GET Task and Proxy - javaC ++ multi-platform library for playing / recording audio (.wav, .ogg) - c ++Postgres CAST macaddr - castingAttachment Mono vs Google V8? - c ++Изменение ширины блоков по умолчанию в LaTeX Beamer - pdflatexperl - check if the file descriptor is stdin - selectAll Articles