Hi,

I need to find out if the form is closed by control box or by code or by other means. Like in UnloadMode in VB 6.

In VB.NET there is no such thing as UnloadMode and MSDN tells me this.

If it is necessary to determine why the form is closing, you will need to create an overloaded version of the Closing event with custom code to determine the caller.
Cheers.