windows form olarak istersen şöyle de yapılabilir.derleyici ile yaptığını farz ediyorum.
bir textbox oluştur.MultiLine özelliğini 1 yap.bir de buton koy ve aşağıdaki kodları yaz.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ASCII_Kod_Yazdırma
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            char girilentext=Convert.ToChar(textBox1.Text);
            if (girilentext < 255 && girilentext > 0)
            {
                int asciiKod = Convert.ToInt32(girilentext);
                MessageBox.Show(asciiKod.ToString());
            }
            else
            {
                MessageBox.Show("Sayi İstenilen Değerler Arasında Değil");
            }

        }
    }
}
Sen sorununu çözmüşsün gerçi ama buradan muhakkak ki faydalancak insanlar olacaktır.bunun için bilhassa koyuyurum bu bilgileri.