Possible to turn OFF Unicode support for .NET TextBox?

SoftwareEng

Senior member
Apr 24, 2005
553
4
81
I am writing a VB.NET (2005) front-end to a DB that doesn't support Unicode. I need to turn off Unicode support for my TextBoxes, so that Windows will automatically convert the unsupported typed or pasted chars to "??????" (Windows does that, I hope you know :)

This shouldn't be a one-char at a time check but rather a property or setting, or maybe a font that doesn't support Unicode?..


Any ideas? Thanks!
 

Tencntraze

Senior member
Aug 7, 2006
570
0
0
I don't think that there's a simple property/override that will help you here, as the System.String type inherently supports unicode characters. Your best bet is probably to handle the TextChanged event, if you want these characters to be updated immediately after typing/pasting, though I know you said you were trying to go for something else.
 

SoftwareEng

Senior member
Apr 24, 2005
553
4
81
Originally posted by: Tencntraze
I don't think that there's a simple property/override that will help you here, as the System.String type inherently supports unicode characters. Your best bet is probably to handle the TextChanged event, if you want these characters to be updated immediately after typing/pasting, though I know you said you were trying to go for something else.

This is not bad =). This handles all ways in which the text could change. Then, I could search the entire string and mask out unsupported chars.

But still, maybe someone is aware of a setting/hack/override/font to disable Unicodeness?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Your DB apparently isn't also for anyone speaking languages other than English. Unicode support should be a requirement for any app written in the past 5 years if not longer.
 

SoftwareEng

Senior member
Apr 24, 2005
553
4
81
Originally posted by: Nothinman
Your DB apparently isn't also for anyone speaking languages other than English. Unicode support should be a requirement for any app written in the past 5 years if not longer.

It is an internal system supporting on-site employees in America. But we'll probably use something other than a dumb char type in the future =)