public static void ShowPreview(this Form frm, string filename, string Chapter) { try { frmPreview frmPreview = new frmPreview(filename, Chapter); //frm.AddOwnedForm(frmPreview); Variables.OpenedForm.Add(frmPreview); frmPreview.Show(); } catch (Exception) { } }