Windows

VB.Net detect Windows shutting down or logging off

If you’ve ever developed an application that minimises the application when the user closes it, you will know that the application can stop Windows from shutting down or you from logging off. There is a bit of nice simple code that stops this from occurring. Private allowClose As Boolean = False Private Sub Form1_Load(ByVal sender …

VB.Net detect Windows shutting down or logging off Read More »