Вы должны войти, чтобы создавать сообщения и темы.

Что быстрее?

Приветствую!

Что быстрее выполнится?
Это:

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;

?
А что из этого правильнее?

Приветствую.
Что быстрее выполняется можно засечь так.

Stopwatch stopwatch = new Stopwatch();
stopwatch.Start();

 // Выполняете код

stopwatch.Stop();
MessageBox.Show(stopwatch.ElapsedTicks.ToString()); 

 

Лайкнул Валерий
Валерий

Спасибо. После тестирования оказалось, что особой разницы нет.