1 Previous Next 

A console project full screen


Castorix, has shown this code in the Microsoft VB forum.

Nothing revulationary he wrote. But if you need this code it is.

 

Imports System.Runtime.InteropServices
Module Module1
    <DllImport("kernel32.dll", ExactSpelling:=True)>
    Private Function GetConsoleWindow() As IntPtr
    End Function
    Private Const SW_SHOWMAXIMIZED As Integer = 3
    <DllImport("user32.dll", CharSet:=CharSet.Auto, SetLastError:=True)>
    Private Function ShowWindow(hWnd As IntPtr, nCmdShow As Integer) As Boolean
    End Function

    Sub Main(args As String())
        ShowWindow(GetConsoleWindow(), SW_SHOWMAXIMIZED)
        Console.ReadLine()
    End Sub
End Module



1 Previous Next