I have one form which opens another form.
What I want to do is position the newly opened form right next (on the right side) to the already visible form.
So I need to position the new form to where the current form ends (correct me if wrong).
So I will need to do something like:
newform.Left = this.endposition.right;
The endposition property is something I just made up (pseudo code).
How to get the end position on the right side of the current form?
EDIT
I've tried several solutions but until now none of them worked.
I always get the same result:
I've tried the following codes:
newform.Left = this.Right + SystemInformation.BorderSize.Width;
newform.Left = this.Right + (SystemInformation.BorderSize.Width * 2);
newform.SetDesktopLocation(this.Location.X + this.Size.Width, this.Location.Y);
Eclyps19 suggested to just manually add some pixels to position the new form, although I'm not sure whether the border will be the same on every system.