Hello!
My name is Carl Andersson and im developing a program in visual basic 2010. It is a writer program or a notepad and i want to add the function that if you press the power button to end the computer the program will save the document in settings and later recover it. I only need a code that gives my program a signal when you start pressing the button. Thanks for answers!