Results 1 to 2 of 2

Thread: Help: Making RightJustify: Usercontrol.RightToLeft ???

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    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
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Help: Making RightJustify: Usercontrol.RightToLeft ???

    You also have to change UserControl.Left by an amount calculated form the width.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width