Horje
maximize window c# console Code Example
maximize window c# console
    using System;  
    using System.Collections.Generic;  
    using System.Linq;  
    using System.Text;  
    using System.IO;  
    using System.Diagnostics;  
    using System.Runtime.InteropServices;  
    namespace Consolefullscreen  
    {  
       class Program  
       {  
          [DllImport("kernel32.dll", ExactSpelling = true)]  
          private static extern IntPtr GetConsoleWindow();  
          private static IntPtr ThisConsole = GetConsoleWindow();  
          [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]  
          private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);  
          private const int HIDE = 0;  
          private const int MAXIMIZE = 3;  
          private const int MINIMIZE = 6;  
          private const int RESTORE = 9;  
          static void Main(string[] args)  
          {  
             Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight);  
             ShowWindow(ThisConsole, MAXIMIZE);  
             Console.ReadLine();  
          }  
       }  
    }  




Csharp

Related
.net core web app get dll name Code Example .net core web app get dll name Code Example
how to open onscreen keyboard c# Code Example how to open onscreen keyboard c# Code Example
remove items from one list in another c# Code Example remove items from one list in another c# Code Example
see if two string arrays are equal c# Code Example see if two string arrays are equal c# Code Example
how to deal with ERESOLVE unable to resolve dependency tree Code Example how to deal with ERESOLVE unable to resolve dependency tree Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9