Thursday, September 08, 2005

Testing

Testing

This is posted using blogger for word.

Let’s try some source code:


private void textBox1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
      System.Diagnostics.Debug.WriteLine(e.KeyCode);
      System.Diagnostics.Debug.WriteLine(e.KeyData);
      System.Diagnostics.Debug.WriteLine(e.KeyValue);
      System.Diagnostics.Debug.WriteLine(e.Modifiers);
      if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Return || e.KeyCode == Keys.A)
           e.Handled = true;
}


OK time to post

Hmm… not bad.  Lost the color on the keywords but I can live with that.