bigcajones Client Регистрация 09.02.2011 Сообщения 1 216 Благодарностей 683 Баллы 113 18.07.2013 #1 Is there a way through code to change the size of the instance on start?
Hungry Bulldozer Moderator Регистрация 12.01.2011 Сообщения 3 441 Благодарностей 834 Баллы 113 18.07.2013 #2 C#: //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) { instance.SetWindowSize(screen.WorkingArea.Width,screen.WorkingArea.Height); return 0; } } Реакции: bhtvdmeer и bigcajones
C#: //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) { instance.SetWindowSize(screen.WorkingArea.Width,screen.WorkingArea.Height); return 0; } }