Im trying to add the spade dos char to a listbox, but for some reason I cant figure out how to generate the spade char.
I tryed
listBox1.Items.Add(System.Convert.ToChar(5));
but doesnt work, anyone know?
This is a discussion on Printing a spade within the C# Programming forums, part of the General Programming Boards category; Im trying to add the spade dos char to a listbox, but for some reason I cant figure out how ...
Im trying to add the spade dos char to a listbox, but for some reason I cant figure out how to generate the spade char.
I tryed
listBox1.Items.Add(System.Convert.ToChar(5));
but doesnt work, anyone know?
.NET uses Unicode, maybe you can look the symbol up in a Unicode table or in your current codepage.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.