Results 1 to 17 of 17

Thread: [RESOLVED] How To Text Be Unicode In TextBox And Label

  1. #1

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Resolved [RESOLVED] How To Text Be Unicode In TextBox And Label

    Hello

    How To Text Be Unicode In TextBox Not In RichTextBox And Unicode In Label

    Thanks
    الحمد لله

  2. #2

  3. #3

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow Re: How To Text Be Unicode In TextBox And Label

    Quote Originally Posted by RhinoBull View Post
    Check out this link.
    Thanks But I Want Code For TextBox
    الحمد لله

  4. #4
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: How To Text Be Unicode In TextBox And Label

    Textbox is member of MS Forms 2.0 Object Library, You have to write Key_Down and Key_Press events of Textbox, Question is that what type of Unicode characters you wants to enter (or show only) in Textbox?
    If there are any language's (like Asian, Arabic) Unicode characters then you have to write a complete keyboard layout for that language in Key_Press event, as default keyboard layout of that language. To show characters of a specific language, you will need a True Type Font that is containing those characters you wants to show in Textbox.
    I've a (Key_Press & Key_Down) code sample for to write & show "Urdu" language (Unicode Characters) in Textbox, You can modify it as you need. Code project is attached.
    Attached Files Attached Files
    Programming is same like Common Sense !


  5. #5

  6. #6
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: How To Text Be Unicode In TextBox And Label

    Quote Originally Posted by RhinoBull View Post
    Which is NOT redistributable.
    I can't understand what do you mean with that?
    Programming is same like Common Sense !


  7. #7

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow Re: How To Text Be Unicode In TextBox And Label

    Quote Originally Posted by Mehmood Iqbal View Post
    Textbox is member of MS Forms 2.0 Object Library, You have to write Key_Down and Key_Press events of Textbox, Question is that what type of Unicode characters you wants to enter (or show only) in Textbox?
    If there are any language's (like Asian, Arabic) Unicode characters then you have to write a complete keyboard layout for that language in Key_Press event, as default keyboard layout of that language. To show characters of a specific language, you will need a True Type Font that is containing those characters you wants to show in Textbox.
    I've a (Key_Press & Key_Down) code sample for to write & show "Urdu" language (Unicode Characters) in Textbox, You can modify it as you need. Code project is attached.
    Thanks mohammad brother . But how can i show text unicode in stander textbox.
    الحمد لله

  8. #8
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: How To Text Be Unicode In TextBox And Label

    Vb6 controls are ANSI only with exception of MSHFlexGrid so you must use a Unicode aware control.

  9. #9

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow Re: How To Text Be Unicode In TextBox And Label

    Quote Originally Posted by DrUnicode View Post
    Vb6 controls are ANSI only with exception of MSHFlexGrid so you must use a Unicode aware control.
    where i find it ?
    الحمد لله

  10. #10
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: How To Text Be Unicode In TextBox And Label


  11. #11
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: How To Text Be Unicode In TextBox And Label

    I think, it will not easy to show Unicode in a Textbox without having a specialized code (like Key_Press). If you have multiple Textboxes, Then you can make a common module for all.
    Programming is same like Common Sense !


  12. #12
    Fanatic Member DrUnicode's Avatar
    Join Date
    Mar 2008
    Location
    Natal, Brazil
    Posts
    631

    Re: How To Text Be Unicode In TextBox And Label

    No specialized code is needed to show Unicode in MsForms TextBox or the control at http://www.vbforums.com/showthread.php?t=500026
    If you want to type Unicode in the TextBox you should load a keyboard IME from Control Panel Regional Settings.
    MsForms has issues with some Keyboard IMEs like Arabic, Urdu, and Kazakh.
    The control at http://www.vbforums.com/showthread.php?t=500026 works with Arabic, Urdu, but not Kazakh.

    Commercial controls:
    1. Hexagora = No support for Kazakh and perhaps some other mapped keyboards.
    2. UniToolBox at http://www.iconico.com/UniToolbox/ - Full IME supprot
    3. UniSuite at http://www.cyberactivex.com - Full IME supprot

  13. #13
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: How To Text Be Unicode In TextBox And Label

    Quote Originally Posted by Mehmood Iqbal View Post
    I can't understand what do you mean with that?
    You cannot package Forms 2.0 library with your your program and distribute to other people unless it's done withing the same company under the same license.
    For more information read MS Office license agreement.

  14. #14
    Member
    Join Date
    Feb 2011
    Posts
    54

    Re: How To Text Be Unicode In TextBox And Label

    check out this control from planetsourcecode.com

    http://planet-source-code.com/vb/scr...69738&lngWId=1

  15. #15
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: How To Text Be Unicode In TextBox And Label

    Quote Originally Posted by RhinoBull View Post
    You cannot package Forms 2.0 library with your your program and distribute to other people unless it's done withing the same company under the same license.
    For more information read MS Office license agreement.
    OK. Thanks. Moving towards MS Office License Agreement.
    Programming is same like Common Sense !


  16. #16
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: How To Text Be Unicode In TextBox And Label

    Nice project suggested by DrUnicode.. I was also not aware about that project. That is also a great help for me.
    Programming is same like Common Sense !


  17. #17

    Thread Starter
    Lively Member SNIPER.PS's Avatar
    Join Date
    Dec 2009
    Posts
    96

    Arrow Re: How To Text Be Unicode In TextBox And Label

    Thanks For All
    الحمد لله

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