Yes.
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
Console.WriteLine(m.ToString());
}
WARNING: Don't run this and expect good response times. You will get a lot of windows messages, and thus slow response because the console output will be scrolling like a loony!