I need help determining what control called the form_deactivate.
Distinquishing between the user (X) closing the form verses the
the deactivate getting called by something other.
I am hoping that in the following line of code there is a way
to get to what I need such as using the 'sender' or 'System.EventArgs'
Thanks in advance.
Distinquishing between the user (X) closing the form verses the
the deactivate getting called by something other.
I am hoping that in the following line of code there is a way
to get to what I need such as using the 'sender' or 'System.EventArgs'
VB.NET:
[SIZE=2][COLOR=#0000ff]Private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] Form1_Deactivate([/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] [COLOR=red]sender[/COLOR] [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Object[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff]ByVal[/COLOR][/SIZE][SIZE=2] e [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [COLOR=red]System.EventArgs[/COLOR]) [/SIZE][SIZE=2][COLOR=#0000ff]Handles[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].Deactivate[/SIZE]
Thanks in advance.