locked
Problem with using my com-visible assembly in VB6 RRS feed

  • Question

  • Hello,

    I made a .NET component in Visulal Studio with COM-Visible interface so it can be avalible in VB6 projects. It is a simple usercontrol with textbox and button. And it's allmost  works fine: I managed to use it in VB6 project and put my usercontrol on VB6 form. But when I try to type a unicode characters  from keybord in my textbox(russian characters) I see a "strange" symbols instead. Like it can't recognize an encoding. If I try to copy\paste  some unicode russian text into my textbox it works fine. Typing an English characters also works fine.

    I try to chsnge textbox font's properties using Arial and Microsoft Sans Serif fonts with GdiCharSet = 204. Doesn't helped.

    Is there some solution of this problem?

     
    Tuesday, November 19, 2013 9:48 AM

Answers

  • Try a font family like ariel that supports unicode

    TextBox1.Font = New Font("Ariel", 14)

    RichTextBox1.Font = New Font("Ariel", 14)


    jdweng

    Tuesday, November 19, 2013 11:36 AM

All replies

  • TextBoxes don't support unicode so try a RichTextBox instead.

    jdweng

    Tuesday, November 19, 2013 10:59 AM
  • Sorry, forgot to mention that I already tried it. Same result.
    Tuesday, November 19, 2013 11:18 AM
  • Try a font family like ariel that supports unicode

    TextBox1.Font = New Font("Ariel", 14)

    RichTextBox1.Font = New Font("Ariel", 14)


    jdweng

    Tuesday, November 19, 2013 11:36 AM