Results 1 to 12 of 12

Thread: [RESOLVED] Textbox RightToLeft problem in vb6

  1. #1

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Resolved [RESOLVED] Textbox RightToLeft problem in vb6

    Hi guys ...
    I'm trying to have a simple TextBox with below features :

    1-MultiLine = True
    2-Alingment = Right Justify
    3-RightToLeft = true
    4-Writting languages which are RightToLeft (Like Persian and ...)

    The two first features are set without any problem , but when i try to change the RightToLeft to true property ( because of feature num 4) , It does not accept true property when i click on it!!( it is always on False as default property) ( I tried to write something like : Text1.RighToLeft=True in Private Sub Form_Load() , It does not Work!)

    I have been trying to change other options like alignment Left Justify and ... to see whether it works or not . Eventually, It didn't show any reaction!

    I have to use textbox because of it MultiLine feature.

    I was wondering if anybody could solve this problem , Thanks

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Textbox RightToLeft problem in vb6

    some properties have to be set in the design, can not be changed at runtime

    right to left only works on windows systems that have the correct languages installed

    from msdn
    Returns a boolean value that indicates the text display direction and controls the visual appearance on a bidirectional system.

    Syntax

    object.RightToLeft

    The RightToLeft property syntax has this part:

    Part Description
    object Anobject expression that evaluates to an object in the Applies To list.


    Settings

    The possible boolean return values from the RightToLeft property are:

    Setting Description
    True The control is running on a bi-directional platform, such as Arabic Windows95 or Hebrew Windows95, and text is running from right to left. The control should modify its behavior, such as putting vertical scroll bars at the left side of a text or list box, putting labels to the right of text boxes, etc.
    False The control should act as though it was running on a non-bidirectional platform, such as English Windows95, and text is running from left to right. If the container does not implement this ambient property, this will be the default value.
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Re: Textbox RightToLeft problem in vb6

    I do not get it! It means the only way to make a TextBox in RighToLeft is Pressing Right Shift+Right Ctrl ?

    If so , Why vb6 has a special part (TextBox Options) for RighToLeft and TRUE/FALSE property ?

    Is there any code to force the TextBox to be in RightToLeft direction ?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Textbox RightToLeft problem in vb6

    It's a READONLY property... it is designed to tell you (or the app, or what ever) if the current language of the OS supports RTL. And if it does, changes some behavior.


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Re: Textbox RightToLeft problem in vb6

    I agree with you , But this is not a good excuse ! Imagine my Os supports the languages with RTL ability . Again the property can not be changed to true in any situation. It is a true Bug of VB6! Because the task of vb6 in such a situation is so easy to do : When the program starts working , Set the RTL to True automatically. Is that so difficult ?
    Anyway , Thanks for your respond

  6. #6
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: Textbox RightToLeft problem in vb6

    It's not a bug, you don't seem to understand the concept.
    Read the post from Westconn again and again.

  7. #7

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Re: Textbox RightToLeft problem in vb6

    "right to left only works on windows systems that have the correct languages installed" . that's what you are trying to mention ? Would u please explain it ?!

    If you search about this BUG! u get what i'm talking about. Forget about explaining and justifying the problem , can anybody solve this or not ?! What should the users do about this ?
    Last edited by GlowingVB; Feb 5th, 2014 at 08:07 AM.

  8. #8

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Re: [RESOLVED] Textbox RightToLeft problem in vb6

    I got the solution myself!

    Search about HexUniControls .

  9. #9

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Resolved Re: [RESOLVED] Textbox RightToLeft problem in vb6

    HexUniControls can solve this easily !
    Last edited by GlowingVB; Feb 5th, 2014 at 08:17 AM.

  10. #10
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: [RESOLVED] Textbox RightToLeft problem in vb6

    Why not share the complete Solution? :-)

  11. #11

    Thread Starter
    Addicted Member GlowingVB's Avatar
    Join Date
    Feb 2014
    Posts
    234

    Re: [RESOLVED] Textbox RightToLeft problem in vb6

    This is the complete solution! Find and get HexUniControls , then you can solve your problem ! (it is something like extra tools for vb6 not code to share!)

  12. #12
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [RESOLVED] Textbox RightToLeft problem in vb6

    I'm not sure what the problem was in the first place...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Tags for this Thread

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