Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# get display resolution

string screenWidth = Screen.PrimaryScreen.Bounds.Width.ToString();
string screenHeight = Screen.PrimaryScreen.Bounds.Height.ToString();
Label1.Text = ("Resolution: " + screenWidth + "x" + screenHeight);
Comment

how to get the width of the screen C#

Screen.FromControl(this).Bounds
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# remove last value from list 
Csharp :: create folder in appdata c# 
Csharp :: c# loop through array 
Csharp :: how to find the mouse position unity 
Csharp :: unity raycast all layers except one 
Csharp :: c# log to console 
Csharp :: c# absolute value 
Csharp :: unity disable cursor 
Csharp :: how to destroy in unity 
Csharp :: get random number c# 
Csharp :: insert variables into string c# 
Csharp :: unity mouse wheel 
Csharp :: list add at index c# 
Csharp :: c# get project directory 
Csharp :: set textbox colour to transparent c# 
Csharp :: wpf label text color rgb string 
Csharp :: c# connection string 
Csharp :: unity text display int 
Csharp :: disable script in unity 
Csharp :: how to unset passwordchar in c# windows application 
Csharp :: unity3d quaternion add 90 degrees 
Csharp :: How To Get The Global Position of a GameObject in a Variable 
Csharp :: restart animation unity 
Csharp :: how to change scenes in unity 
Csharp :: trnasform ubnity 
Csharp :: c# array remove first element 
Csharp :: unity set active for seconds 
Csharp :: c# reverse a string 
Csharp :: c# rename file add 
Csharp :: Unity asset storre download forlder 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =