private void ShowCannotOpenPanel(Size originalSize) { cantOpenPanel = new CannotOpenImagePanel(filePath, originalSize); cantOpenPanel.Dock = DockStyle.Fill; uiPreviewerSplitContainer.Panel2.Controls.Add(cantOpenPanel); }