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




Reply With Quote