Цитата: Валерий от 17.08.2021, 07:42
Приветствую!
Что быстрее выполнится?
Это:
this.Location = new Point(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - this.Width, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - this.Height);
или это:
this.Top = Screen.PrimaryScreen.Bounds.Height - this.Height;
this.Left = Screen.PrimaryScreen.Bounds.Width - this.Width;
?
А что из этого правильнее?
Приветствую!
Что быстрее выполнится?
Это:
this.Location = new Point(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - this.Width, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - this.Height);
или это:
this.Top = Screen.PrimaryScreen.Bounds.Height - this.Height;
this.Left = Screen.PrimaryScreen.Bounds.Width - this.Width;
?
А что из этого правильнее?