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