I'm creating an SMS application that has a large text area for entering an SMS message. Beneath that, I have 2 counters (as labels):
1) keeps count of characters typed, and
2) keeps count of SMS Count (being that an SMS is limited to 160 characters by SMSGlobal - my provider)
In design phase, my form looks as can be seen in attachment: At run time, it appears as can be seen in attachment: Is it possible to have a label be anchored on its right edge so that when it auto-resizes, it expands towards the left, similar to right justification in Word documents?
I know that I can change the Label's text property (which is how I've coded it for now), but I'd prefer to do it in code.
Cheers,
ak.
UPDATE: I've identified that I can play around with .X and .Width to come up with a runtime solution:
Code: Select all
smsCount.X = SMSMessage.X + SMSMessage.Width - smsCount.Width