Skip to content

Instantly share code, notes, and snippets.

@drewlesueur
Created August 3, 2011 08:40
Show Gist options
  • Select an option

  • Save drewlesueur/1122191 to your computer and use it in GitHub Desktop.

Select an option

Save drewlesueur/1122191 to your computer and use it in GitHub Desktop.
Visual basic screen shot of an application
'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