Char.IsControl bug?

  • Thread starter Thread starter Praveen Ramesh
  • Start date Start date
P

Praveen Ramesh

Hi,

I am listening to TextChanged events in a TextBox and checking if a char is
a control char via the Char.IsControl method. This works fine for regular
English input. But when I change the input lang. to be "Greek", certain
characters (like capital "D", delta in greek, I think) are recognised AS
CONTROL CHARS by the Char.IsControl method (whereas they certainly are not
control chars). I have made sure that the Application.CurrentInputLanguage
setting is set to "Greek" at this point.

Am I missing something or is this a bug?

TIA,
-Praveen
 
* "Praveen Ramesh said:
I am listening to TextChanged events in a TextBox and checking if a char is
a control char via the Char.IsControl method. This works fine for regular
English input. But when I change the input lang. to be "Greek", certain
characters (like capital "D", delta in greek, I think) are recognised AS
CONTROL CHARS by the Char.IsControl method (whereas they certainly are not
control chars). I have made sure that the Application.CurrentInputLanguage
setting is set to "Greek" at this point.

Am I missing something or is this a bug?

Are you sure you read the documentation for 'Char.IsControl'? You will
find a description there why/when characters are identified as control
characters.
 
Closing as duplicate and dropping post in other version.
----------------
This posting is provided "AS IS" with no warranties, and
confers no rights.

Please do not send e-mail directly to this alias. This
alias is for newsgroup purposes only.

Thanks
Nick

--------------------
Sender: Standardbenutzer@TU-K3YVE0N56PSA
Subject: Re: Char.IsControl bug?
References: <[email protected]>
X-Face: vJn^g[Lkg9YfJ,Oj#{Y[')WBo<1kS#Rc3Vb!D;jf$;OZ%<"'z+DX"K/m)h\Gi;e-AYsc%'CmL~Ix
@YEq$}A>^]KbF1.Z|=/'*CcB[f+8(m&vP.u4+P.q$n]?[s>nnFu/8EuC?h[c\#wR{ok_um~57to=
P=1"{qO1e%A2~nS?<[o`jn?C/-}7Mbz~L)WI=5VL!*xU#^d
From: (e-mail address removed) (Herfried K. Wagner [MVP])
Date: 14 Dec 2003 18:20:42 +0100
Lines: 17
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows)) Hamster/2.0.0.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Message-ID: <#[email protected]>
Newsgroups: microsoft.public.dotnet.framework.windowsforms
NNTP-Posting-Host: n694p020.adsl.highway.telekom.at 62.47.30.180
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP12.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.windowsforms:58075
X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms

* "Praveen Ramesh said:
I am listening to TextChanged events in a TextBox and checking if a char is
a control char via the Char.IsControl method. This works fine for regular
English input. But when I change the input lang. to be "Greek", certain
characters (like capital "D", delta in greek, I think) are recognised AS
CONTROL CHARS by the Char.IsControl method (whereas they certainly are not
control chars). I have made sure that the Application.CurrentInputLanguage
setting is set to "Greek" at this point.

Am I missing something or is this a bug?

Are you sure you read the documentation for 'Char.IsControl'? You will
find a description there why/when characters are identified as control
characters.
 
Back
Top