Start The Instance Maximized

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
682
Баллы
113
Is there a way through code to change the size of the instance on start?
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
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

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)