Created
August 3, 2011 08:40
-
-
Save drewlesueur/1122191 to your computer and use it in GitHub Desktop.
Visual basic screen shot of an application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>vbc.exe /t:exe /out:.\MyOutFileName.exe inputfilename.vb | |
| ' Allow easy reference to the System namespace classes. | |
| Imports System | |
| ' This module houses the application's entry point. | |
| Public Module modmain | |
| ' Main is the application's entry point. | |
| Sub Main() | |
| ' Write text to the console. | |
| Console.WriteLine ("Hello World using Visual Basic!") | |
| AppActivate("Untitled - Notepad") | |
| 'System.Windows.Forms.SendKeys.Send("%{PRTSC}") | |
| System.Threading.Thread.Sleep(1000) | |
| System.Windows.Forms.SendKeys.SendWait("%{PRTSC}") | |
| End Sub | |
| End Module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment