Results 1 to 5 of 5

Thread: HELP! How can I write RightToLeft in textbox?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Chelyabinsk, Russia
    Posts
    3

    Post

    I want to write in Hebrew and in Thai in textbox. But I can't to set RightToLeft property to True, because I have Engish version of Windows. How can I do it anyway?

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    Not being Hebrew or Thai myself I don't know exactly what you are after - but this may help - put this in the textbox change event..

    Sub Text1_Change()
    Text1.SelStart = 0
    End Sub

    ..?
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Post

    may be tou can try to change the Alignment properties to Right Justified. Hope it can help you.

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Chelyabinsk, Russia
    Posts
    3

    Post No always

    Thanks, but if the user enter a long ling, that will break on the next line?


    Not being Hebrew or Thai myself I don't know exactly what you are after - but this may help - put this in the textbox change event..

    Sub Text1_Change()
    Text1.SelStart = 0
    End Sub

    ..?

  5. #5
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    Aah - you didn't say a 'multiline' text box.. anyway, try this slight amendment;

    Dim LastPos as Long

    Sub TextBox1.KeyPress(KeyASCII as Integer)
    LastPos=TextBox1.SelStart
    End Sub

    Sub TextBox1.Change
    TextBox1.SelStart=LastPos
    End Sub

    I think that improves matters.
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

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