Home Forums WinForms controls Other WinForms controls Combined characters in textboxes not working?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18065 |

    I recently noticed that typing a character that combines two characters doesn’t seem to work. Typing for instance “é” or “ü” or something else which require you to first type one char and then the other, results in something like “´´e” and “¨¨u” for the above examples. I’ve tried this with all “combinational characters” I could think of, such as ^, ¨, ~, etc, but none seems to work.

    Is this a bug?

    Imported from legacy forums. Posted by macke (had 2494 views)

    User (Old forums)
    Member
    Post count: 23064

    Has no one seen this behaviour before? Am I missing something?

    Imported from legacy forums. Posted by macke (had 180 views)

    User (Old forums)
    Member
    Post count: 23064

    After a while I noticed this was actually global, not only happening in my app. I concluded it must be because of my global keyboard hook and soon thereafter found the culprit. A call to an unmanaged function in the Win32 API called ToAscii actually seems to consume the character and cause this odd behaviour. Since I don’t actually NEED the character right now I just commented out the call and sent null as event args. Now everything seems to be working peachy.

    The reason I thought this might have been a bug with textboxes is that in this project I’m only using Xceed textboxes, and in another I’m not. The xceed project had this problem where the other did not. Now we know why.

    Imported from legacy forums. Posted by macke (had 3615 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.