public MapForm(ProjectMainForm parent, Map m, Spriteset ss, Sprite s) { m_parent = parent; m_ss = ss; InitializeComponent(); SetMap(m); m_toolbox = new Toolbox_Map(); m_optionbox = new Optionbox_Map(); MdiParent = parent; FormBorderStyle = FormBorderStyle.SizableToolWindow; StartPosition = FormStartPosition.Manual; Visible = false; ControlBox = false; // Set to 16x. cbZoom.SelectedIndex = (int)ZoomLevel.Zoom_16x; cbZoom.Enabled = false; m_tileSpriteX = -1; m_tileSpriteY = -1; }