I would like my console launch a function when it closing, like that :
Sub Console_Closing(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
But, I'm not using Windows Form but the module, and I can't import Windows Form in the project. Haven't you got an idea ? Tanks ;)