I want to call a validation function in all load event form but i want to avoid to put the code in load event (this proyect has 50+ forms). Is there a way to do this?
private void frmPrincipal_Load(object sender, EventArgs e)
{
//i want to avoid this code in all forms
if ( validation() == false )
System.Windows.Forms.Application.Exit()
}