.net windows forms how to make your 2.form appear right next to your first form

deniz koyuncu 11 Reputation points
2022-01-29T17:43:56.647+00:00

same as the question

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,831 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,736 Reputation points
    2022-01-29T18:22:34.613+00:00

    You can do :

                Form2 myForm2 = new Form2();
                myForm2.StartPosition = FormStartPosition.Manual;
                myForm2.Location = new Point(this.Bounds.Right, this.Bounds.Top);
                myForm2.Show();
    

    (there is a space between the 2 Forms because of DWM (DWM APIs otherwise...))

    0 comments No comments