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 »

Generate a password

Something that I found that I frequently come across is the need to generate a random string, so I ended up creating a simple shared function that dealt with that for me. Imports Microsoft.VisualBasic Public Class PasswordFunctions ”’ <summary> ”’ This function generates a random password allowing for the specification of the contents ”’ </summary> …

Generate a password Read More »