Advertisement
Guest User

Untitled

a guest
May 25th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. 'find the current right alignment position
  2. Dim rightAlign As Integer = Label1.Left + Label1.Width
  3. 'set the text (assumes AutoSize is set to True)
  4. Label1.Text = value
  5. 'adjust position so the right hand point is in the same position as before
  6. Label1.Left = rightAlign - Label1.Width
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement