Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

hide console window c#

[DllImport("kernel32.dll")]
static extern IntPtr GetConsoleWindow();

[DllImport("user32.dll")]
static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

const int SW_HIDE = 0;
const int SW_SHOW = 5;

// Usage:
var handle = GetConsoleWindow();

// Hide
ShowWindow(handle, SW_HIDE);

// Show
ShowWindow(handle, SW_SHOW);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# error messagebox 
Csharp :: unity mouse click m 
Csharp :: movement script c# 
Csharp :: unity createassetmenu 
Csharp :: orderby c# randomize 
Csharp :: unity on mousewheel down 
Csharp :: rigidbody2d freeze position 
Csharp :: unity access child 
Csharp :: how to disable a gameObject unity c# 
Csharp :: pause audio unity 
Csharp :: randomize through array in C# 
Csharp :: c# how to check string is number 
Csharp :: smooth rotation unity 
Csharp :: decode base64 string c# 
Csharp :: open website c# 
Csharp :: isletter c# 
Csharp :: c# length 2d array 
Csharp :: bitmap to byte array c# 
Csharp :: how to reference scripts in other scenes unity 
Csharp :: #region in c# 
Csharp :: how to split and get last index values in c# 
Csharp :: unity how to load up a scene 
Csharp :: double to int c# 
Csharp :: c# change cursor 
Csharp :: assign datasource to dropdownlist in c# 
Csharp :: stock span problem c# 
Csharp :: change image source wpf 
Csharp :: bower azure repository tag 
Csharp :: C# data table primary key from 2 columns 
Csharp :: Oculus Unity add haptics 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =