Unicode Form Text

When I set the Text property of a form in VB.NET with an Arabic or Russian text string I just get a row of boxes wheras everywhere else I have tried - menus, edits, labels, combo boxes etc they are displayed correctly.  
If it is relevant the strings originate in an Access 2000 database accessed via ADO.NET.
Can I do anything about this 


Answer this question

Unicode Form Text

  • rkarem

    yes I have to pay some bills :( should be back within 3 or 4 days.

    Let me know when you get this figured out, Nata1 is starting to work with foreign languages so I'm just starting to get familiar with set culture on threads, formatting text, etc.

    the next place I would look is at the methods on the string object, it has <i>some</i> culture support in the toString method, etc.

  • Muhammad Hegab

    No I am not, how do I do this 
    Why do I need to do this for a Form Text but not for say a label   (Suppose that's one for Microsoft!)
    (Sorry but your link went to an expired website!)
    Thanx

  • egreen

    nata1 - I have looked into your suggestion and It does not help
    On further testing I have found that there is no problem with Russian, only with Arabic
    Sorry about that
    I have tried:-

        Select Case lID
          Case 6
            ' Arabic
            Thread.CurrentThread.CurrentUICulture = New CultureInfo("ar-EG")
            Thread.CurrentThread.CurrentCulture = New CultureInfo("ar-EG")
            sTest = pdb.GetText(atx.AppName)  ' read string from database '
            MsgBox(sTest, , sTest)
            sTest = " "  '(Just random characters, I can't understand it !!)'
            MsgBox(sTest, , sTest)

    ie try text from my db and literal entered in code.  Both these message boxes give Arabic in the body but a row of boxes in the title.

    just "ar" in the cultures does not help either.

    and Russian works without setting culture !!



  • Bastiaan Molsbeck

    are you setting the culture info on the Thread
  • JawCo

    Have finally fixed it and I feel Very Silly

    Tried it on another pc and it worked !!
    The original was Windows XP and I had not installed 'Complex and right to left languages' in Control Panel Regional and Language options

    It is amazing though just how much does work without installing it!

    If anybody gets right to left window header text as little boxes you know where to look!



  • Unicode Form Text