Printing a spade

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 ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    110

    Printing a spade

    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?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    .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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Blackjack Program
    By saber1357 in forum C Programming
    Replies: 1
    Last Post: 03-28-2009, 03:19 PM
  2. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  3. Bitwise Unwanted Output
    By pobri19 in forum C++ Programming
    Replies: 4
    Last Post: 09-15-2008, 04:07 AM
  4. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 07:10 PM
  5. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 03:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21