C
CES
All,
I'm trying to figure out if you can bypass(or cancel) a form events from firing.
Basically what I'm trying to do is make sure that any time a form is closed it automatically opens up the default splash screen(default).
However the problem with that is that there is no way of closing the application because any time a form closes it automatically opens up the default form.
So I was wondering is there an event that fires before the Form_Close() event that could somehow be bypassed if a closed application button was clicked on.
A bad example of what I'm looking for with the is there a way of canceling the Form_Close() event from ever executing (this would prevent the form and application from ever closing). I've tried:
Private Sub Form_LostFocus()
Me.Form.OnClose
Cancel = True
End Sub
But I get a compile error "invalid use of property".
Thanks in advance. - CES
I'm trying to figure out if you can bypass(or cancel) a form events from firing.
Basically what I'm trying to do is make sure that any time a form is closed it automatically opens up the default splash screen(default).
However the problem with that is that there is no way of closing the application because any time a form closes it automatically opens up the default form.
So I was wondering is there an event that fires before the Form_Close() event that could somehow be bypassed if a closed application button was clicked on.
A bad example of what I'm looking for with the is there a way of canceling the Form_Close() event from ever executing (this would prevent the form and application from ever closing). I've tried:
Private Sub Form_LostFocus()
Me.Form.OnClose
Cancel = True
End Sub
But I get a compile error "invalid use of property".
Thanks in advance. - CES