public void CreateAreasWindow() { if (Areas == null || !Areas.Visible) { Cursor.Current = Cursors.WaitCursor; Areas = new Areas.OwnerForm(); if (DockEditors) { Do.AddControl(MainForm.PanelForms, Areas); } else { Areas.Show(); } loadedForms.Add(Areas); Cursor.Current = Cursors.Arrow; } Areas.KeyDown += new KeyEventHandler(editor_KeyDown); Areas.BringToFront(); }