I am trying to convert an application from VB to C# and running into the classic problem of trying to replicate the VB Chr() function with little success.. let me get across two facts and I hope it doesn't sound rude...but....
1. No I don't want to use the Visual Basic Dll the whole purpose of porting it to C# is to avoid using VB.
2. I have tried (char) and Convert.ToChar( ) they do work but not quite the same. Let me explain...
In VB if i do Chr(8) I get back this little black rectangle with a white circle.... yet to figure out what character set this is from..certainly not ASCII...
In C# Convert.ToChar( 8) returns /b which is incorrect in my applications functionality and when it tries to read this character it throws an invalid format exception...
Could anyone help so that I can use Encoding of some type to find the exact same character that VB throws back... Oh I have tried Encoding.Defaul t.GetBytes()
1. No I don't want to use the Visual Basic Dll the whole purpose of porting it to C# is to avoid using VB.
2. I have tried (char) and Convert.ToChar( ) they do work but not quite the same. Let me explain...
In VB if i do Chr(8) I get back this little black rectangle with a white circle.... yet to figure out what character set this is from..certainly not ASCII...
In C# Convert.ToChar( 8) returns /b which is incorrect in my applications functionality and when it tries to read this character it throws an invalid format exception...
Could anyone help so that I can use Encoding of some type to find the exact same character that VB throws back... Oh I have tried Encoding.Defaul t.GetBytes()
Comment