32 or 64 bit version of product: x64
Operating system: Windows 10 1709
32 or 64 bit OS: x64
I have a form on which a label has been drawn. When I call/launch that form, I need to change the location of the label if I need to (based on a variable). Even taking out the variable, if I try to pro-grammatically change the label's location at run-time using code, it just doesn't move.
In the script portion of the form designer, I have tried things like:
- $label.location.X = 12
- $label.location.Y = 370
- $label.location = new-object system.drawing.point(12,370)
- $label.left = 12
- $label.top = 370
Nothing code-wise changes the location of that label when the form is called. I've also tried putting those commands inside and outside of the form_load event.
It behaves as if you cannot change the location of an object at run-time. But can you?