C# – Update label location in C#

c++labelruntimewinforms

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;
objectA.Refresh();

how do I do this?

Best Solution

Use the Left property to change X coordinate of a Label

objectA.Left = 100;