title: Where is Message defined in .Net, using the Compact Framework?
body: <p>Should be an easy question, so don't all pile on - </p>
  
  <p>I'm trying to override WndProc like this:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Collections;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Text;
  using System.Windows.Forms;
  using System.IO;
  </code></pre>
  
  <p>snip...</p>
  
  <pre><code>public class GTextBox : TextBox
  {
      protected override void WndProc(ref Message m)
  </code></pre>
  
  <p>and I get this error:</p>
  
  <p>error CS0246: The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>I've poked around a little but I don't see how to find out where Message is defined? Any hints?</p>
  
  <p><b>Update:</b> "using System.Windows.Forms" is in the file, and I have checked the DLL reference. Hmm... probably time to re-boot for good luck?</p>
  
  <p><b>Update 2:</b> My Bad! - I am using the Compact Framework, and it does not allow direct access to the Message structure. Ouch - should have put that in my original question</p>
  
  <p><b>Update 3:</b> Excellent article on CF and WndProc handling <a href="http://msdn.microsoft.com/en-us/magazine/cc188736.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/magazine/cc188736.aspx</a></p>