private void toolStripMenuItemGallery_Click(object sender, EventArgs e) { toolStripMenuItemGallery.Checked = true; toolStripMenuItemDetails.Checked = false; int left = splitContainerFilterFolder.Panel2.Left; int top = menuStripMain.Height; int width = splitContainerFolderFile.Width - splitContainerFilterFolder.Panel1.Width; int height = splitContainerFilterFolder.Height + 1; subFormGallery.Left = left; subFormGallery.Top = top; subFormGallery.Height = height; subFormGallery.Width = width; // subFormGallery.BackColor = Color.Black; subFormGallery.Anchor = AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; subFormGallery.Show(); subFormGallery.BringToFront(); }