I am using
VB 2012. I am trying to write the code that changes the location of a label in a container. In other words, I am trying to set the X and Y coordinates of the Label within the container. It is simple to do it by changing the properties in the The Designer, bu I need to do it with code. Below is the code that I am trying to use, but it fails:
[Label1.Location.X=100]
[Label1.Location.Y=120]
Can anyone explain to me how this is done? I have tried everything.
The part following the X (=100) apparently is not correct.
Thank you,
Mike Smith