revised Posted February 16, 2016 at 02:57 AM Report Share #593557 Posted February 16, 2016 at 02:57 AM Boas pessoal, Existe alguma forma de em C# (Visual Studio) eu conseguir detectar se o utilizador inicia desligamento do pc de modo a que antes do meu programa fechar o mesmo restaure umas definições que foram alteradas? Agradeço ajuda o mais breve possível pois estou a terminar o desenvolvimento de um programa que vai ajudar muita gente na minha escola e isto está a atrasar o lançamento da versão final. Obrigado. Link to comment Share on other sites More sharing options...
He B TeMy Posted February 16, 2016 at 03:02 AM Report Share #593558 Posted February 16, 2016 at 03:02 AM Se for form podes usar o Form_Closing evento se não me engano... Se não funcionar, vê http://stackoverflow.com/a/6799964/2990244 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now