Detect when new display is connected
Lookie here: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.wndproc.aspx
There's an example which should help you. Try something like this:
protected override void WndProc(ref Message m)
{
const uint WM_DISPLAYCHANGE = 0x007e;
// Listen for operating system messages.
switch (m.Msg)
{
case WM_DISPLAYCHANGE:
// The WParam value is the new bit depth
uint width = (uint)(m.LParam & 0xffff);
uint height = (uint)(m.LParam >> 16);
break;
}
base.WndProc(ref m);
}