Should be an easy question, so don't all pile on -
I'm trying to override WndProc like this:
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;
snip...
public class GTextBox : TextBox
{
protected override void WndProc(ref Message m)
and I get this error:
error CS0246: The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?)
I've poked around a little but I don't see how to find out where Message is defined? Any hints?
Update: "using System.Windows.Forms" is in the file, and I have checked the DLL reference. Hmm... probably time to re-boot for good luck?
Update 2: 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
Update 3: Excellent article on CF and WndProc handling http://msdn.microsoft.com/en-us/magazine/cc188736.aspx