Hi ich bin's mal wieder.
Diesmal möchte ich, dass meine 2. Form mittig von der 1. Form gestartet wird.
Wenn ich das so umsetze,
C#-Quelltext
1: 2: 3:
| Anmeldefenster AMF = new Anmeldefenster(); AMF.Location = new Point(this.Location.X, this.Location.Y); if(AMF.ShowDialog() == DialogResult.OK) { MessageBox.Show("Login funktioniert"); } |
ändert sich gar nichts an der Position (egal ob mittig oder nicht).
Auch mit
this.DesktopLocation hat sich nichts geändert.
Woran liegt dass, bzw wie setze ich die Location mittig von Form1?