V
VMI
How can I stop a form fro closing when the user tries to close it?
For example, in my code:
private void frm_audit_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
if (_BisSavingData)
{
// Code that will override the Closing method. I don't want the form
to close
}
else
{
// Continue closing the form
}
}
For example, in my code:
private void frm_audit_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
if (_BisSavingData)
{
// Code that will override the Closing method. I don't want the form
to close
}
else
{
// Continue closing the form
}
}