S
Scott Starker
Hi all.
What I want to do is create a control array using labels (I already figure
out how to create a control array) with 1 label equal to the ASCII font
character it displays. What I have found out is every font character from
0x79 to 0xA0 that get converted to a string contains the 4 sided block
character. I want to be all separate characters. Using the following:
Encoding u16LE = Encoding.Unicode;
char[] DisplayCount = new char[0xff-0x20];
for (int i = 0; i < 0xff - 0x20; i++)
{
DisplayCount = Convert.ToChar(i + 0x21);
}
bytes = u16LE.GetBytes(DisplayCount);
I have tried:
aLabel.Text = Convert.ToString(Convert.ToChar(bytes[2 * (this.Count - 1)]));
aLabel.Text = String.Format("{0}",
Convert.ToChar((bytes[2*(this.Count-1)])));
aLabel.Text = (Convert.ToChar((bytes[2*(this.Count-1)])).ToString();
aLabel.Text = Convert.ToChar(this.Count + 0x20).ToString();
So, I think is it is related is the string. Could somebody offer a
suggestion?
Scott
What I want to do is create a control array using labels (I already figure
out how to create a control array) with 1 label equal to the ASCII font
character it displays. What I have found out is every font character from
0x79 to 0xA0 that get converted to a string contains the 4 sided block
character. I want to be all separate characters. Using the following:
Encoding u16LE = Encoding.Unicode;
char[] DisplayCount = new char[0xff-0x20];
for (int i = 0; i < 0xff - 0x20; i++)
{
DisplayCount = Convert.ToChar(i + 0x21);
}
bytes = u16LE.GetBytes(DisplayCount);
I have tried:
aLabel.Text = Convert.ToString(Convert.ToChar(bytes[2 * (this.Count - 1)]));
aLabel.Text = String.Format("{0}",
Convert.ToChar((bytes[2*(this.Count-1)])));
aLabel.Text = (Convert.ToChar((bytes[2*(this.Count-1)])).ToString();
aLabel.Text = Convert.ToChar(this.Count + 0x20).ToString();
So, I think is it is related is the string. Could somebody offer a
suggestion?
Scott