quarta-feira, 14 de agosto de 2013

How to create an application that turns off your computer with Visual Studio 2012?

It is very easy.


First you must have installed on your computer Visual Studio 2012.

1 - Open Visual Studio 2012.

2 - Search for the New Project option.

3 - Put a name to your project. And press OK.

4 - Look for the object "Button" within the Toolbox and double-clicks.

5 - Double-click on "Button1" and we put the code.

6 - Now type the command "shell (" shudown -s -t 1200 ")" observe the image below.

7 - Now run your program.
8 - Press "Button1" and note the windows message warning about shutting down your computer in 20 minutes.



"1200" seconds is equal to 20 minutes.
"-s" is equal shutdown.
"-t" defines time in seconds for command execution.
"-a" Cancels the shutdown.

9 - To abort the shutdown use (shutdown-a) run on windows.




'Thanks for reading

Make your comments





Visual Basic 2010

Ai vai uma apresentação básica com 43 slides de algumas características do Visual Studio:

http://www.slideshare.net/fagnerlima91/visual-basic-2010-01-programao-bsica

E se você quer se aprofundar um pouco mais acesse o site abaixo:

http://msdn.microsoft.com/pt-BR/vstudio/ms789086


quarta-feira, 13 de março de 2013

Primeiro Emprego

Hoje quem procura o primeiro emprego, não pode deixar de conhecer os sites abaixo:

www.espro.org.br
www.apinfo.com.br
www.ciee.org.br