Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Declare Auto Function ShowWindow Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal nCmdShow As Integer) As Boolean
- Private Declare Auto Function GetConsoleWindow Lib "kernel32.dll" () As IntPtr
- Private Const SW_HIDE As Integer = 0
- Sub Main()
- Dim hWndConsole As IntPtr
- hWndConsole = GetConsoleWindow()
- ShowWindow(hWndConsole, SW_HIDE)
- 'continue your code
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement