PHP:
//code to set up windows size the same as primary screen's resolution
foreach (var screen in System.Windows.Forms.Screen.AllScreens)
{
if(screen.Primary)
{
<span class="highlight">instance</span>.SetWindowSize(screen.WorkingArea.Width,screen.WorkingArea.Height);
return 0;
}
}
![error_max.jpg](/discussion/data/attachments/3/3940-f61f388becca3080c476cb651304f143.jpg)