From d198a7b63ac3b57b2a7c887ddae2717b524ccdbf Mon Sep 17 00:00:00 2001 From: mschill Date: Tue, 24 Feb 2026 08:22:18 -0500 Subject: [PATCH] B2025-064 PROMS clears the windows clipboard when closing PROMS with tabs open. --- PROMS/Volian.Controls.Library/StepTabRibbon.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepTabRibbon.cs b/PROMS/Volian.Controls.Library/StepTabRibbon.cs index 7c5583b4..482e4c1a 100644 --- a/PROMS/Volian.Controls.Library/StepTabRibbon.cs +++ b/PROMS/Volian.Controls.Library/StepTabRibbon.cs @@ -1668,7 +1668,17 @@ namespace Volian.Controls.Library } Clipboard.Clear(); - Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard + //Try to update the data object to persist beyond PROMS life + //if can't, log it and use old method of scoping clipboard to PROMS life + try + { + Clipboard.SetDataObject(myDO, true); // this saves the cleaned up information to the Windows clipboard + } + catch (Exception ex) + { + _MyLog.Warn($"Error Setting Clipboard Object to Persist beyond PROMS. Clipboard will be scoped to PROMS. Error:{ex.Message}"); + Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard + } } iData = Clipboard.GetDataObject(); bool noEquationData = true;