OK, i need that label1 will always change it location to the middle of the panel.
but will stay in the same Y spot (X change to the middle of his line, Y stay as it is)

and i need that label2 will always change it location to the middle of the panel
but will stay in the same X spot (X stay as it is, Y change to the middle of his line)

it's for AXES i want to add label that have X and Y above the every Axis

and when i will Resize the Form
it will change the location of them//

You have to write a function to change the location of these labels on the basis of location and size of panel
in that call

void changelocation(int change)
{
 label1.Location = new System.Drawing.Point(x+change, y);
 label2.Location = new System.Drawing.Point(x, y+change);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.