Help: Making RightJustify: Usercontrol.RightToLeft ???
Ok I have a custom label and im trying to create a rightJustify with AutoSIZE:
I got it to the RightJustofy, but not with the AutoSIZE. The width still keeps on moving right instead of left.
Heres some coding.
Code:
If m_AutoSize = True Then
If m_Caption = "" Then
UserControl.Width = 90
Else
if m_Align = vbRightJustify then UserControl.RightToLeft = True
UserControl.Height = UserControl.TextHeight(m_Caption) + 20
UserControl.Width = UserControl.TextWidth(m_Caption) + 20
End If
End If
Re: Help: Making RightJustify: Usercontrol.RightToLeft ???
You also have to change UserControl.Left by an amount calculated form the width.