supposing that I have two labels with variables text.
For example:
label1.Text = "foo";
label2.Text = "baa";
Form output:
________________
| |
|foo baa |
|______________ |
other example:
label1.Text = "fooooo";
label2.Text = "baaaa";
Form output:
________________
| |
|fooooo baaaa |
|______________ |
I tried it:
label2.Location = new Point
{
X = label1.Location.X + label2.Location.X,
Y = label1.Location.Y
};
I imagined that the space was sufficient. But label2 hide label1 if the text is larger.
You need to use
label1.Rightinstead: