Levisvv Member Licensed User Longtime User Aug 2, 2014 #1 How can I programmatically set the anchor of an item that is say set to left and left = 0 I want to move it right with right=0 so it is moved from the entire left side of the window to the right? In designer this is obvious, but how can this be done in programming?
How can I programmatically set the anchor of an item that is say set to left and left = 0 I want to move it right with right=0 so it is moved from the entire left side of the window to the right? In designer this is obvious, but how can this be done in programming?
klaus Expert Licensed User Longtime User Aug 2, 2014 #2 You cannot set Anchors in the code. You need to set its Left property : Label1.Left = 100%x - Label1.Width Upvote 0
You cannot set Anchors in the code. You need to set its Left property : Label1.Left = 100%x - Label1.Width