public DrawerWnd(CDrawer dr) { InitializeComponent(); // use the log as built from parent _log = dr._log; // save window size m_ciWidth = dr.m_ciWidth; m_ciHeight = dr.m_ciHeight; // cap delegates, this will be set by owner m_delRender = null; m_delMouseMove = null; m_delMouseLeftClick = null; m_delMouseRightClick = null; // cap/set references m_bgc = new BufferedGraphicsContext(); m_bg = null; // create the bitmap for the underlay and clear it to whatever colour m_bmUnderlay = new Bitmap(dr.m_ciWidth, dr.m_ciHeight); // docs say will use Format32bppArgb // fill the bitmap with the default drawer bb colour FillBB(Color.Black); // show that drawer is up and running _log.WriteLine("Drawer Started..."); }