C# – Update label location in C#


I have a method that returns a value, and I want this value to be the new location of a label in a windows form application. but I'm being told that a label's location is not a variable. objectA is the name of the label.

objectA.Location.X = (int)A.position;

how do I do this?

Best Solution

Use the Left property to change X coordinate of a Label

objectA.Left = 100;