I've got a WPF application using datagrid. The application worked fine until I installed Visual Studio 2012 and Blend+SketchFlow preview. Now, when I'm trying to copy the data from the grid into the clipboard with Ctrl + C (in any application), I'm getting the following exception: System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed [...] read more
In my WPF app, I am using a Datagrid control; in the control definition I defined ClipboardCopyMode property as 'IncludeHeader'. <DataGrid Name="datagrid" ClipboardCopyMode="IncludeHeader"> </DataGrid> At times, when I try to copy any data from grid, I am encountering HRESULT clipboard crash error - System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard Failed (Exception from HRESULT: [...] read more
I have a simple WPF app which creates a Thread, polls the clipboard every second and trims any strings it finds However, in the background thread, once the string content changes, the clipboard methods fail with the exception OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN)) Example: I have "ABC" on [...] read more
I am having a problem regarding clipboard and I get this error message every time I try to make a copy / paste operation from an Excel file. The code breaks at Clipboard.GetDataObject() and the message error is this: OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN)) My WPF application is [...] read more
I am having trouble copying cells from a WPF datagrid. I have a few other text editor windows (like Avalonedit) in the same app from where I can copy to Clipboard but not from the datagrid. Whenever, I try to copy even one cell I get the message "Open Clipboard [...] read more
I made an AddIn for Excel (2016), that saves the print area as a jpg file. It worked fine for a few months. Nowadays I get more and more error reports from users, all get the same error (picture below). The users have Windows 7 with Excel 2013 or Windows [...] read more
Sometimes I get a clipboard error. I've researched this and found that there is a better way to do this, but being new I can't figure out how to integrate it in my code. Trying to make it more stable. Tried multiple ways to convert the information. Looking to fix [...] read more
My project is about text processing software and using InputSimulator library. When my program simulate Ctrl+C and get text from clipboard, It gave an exception like this. An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in PresentationCore.dll Additional information: OpenClipboard Failed (Exception from HRESULT:0x800401D0 (CLIPBRD_E_CANT_OPEN)) here's my project and here's my [...] read more
i'm having issues with CTRL + C on my app. I know for a fact that when a certain program (DameWare for example) is locking the clipboard my app getting exception when using it (OpenClipboard Failed CLIPBRD_E_CANT_OPEN HRESULT:0x800401D0). So whenever i use the clipboard i wrap it with a try [...] read more
I am using MS office (Professional Plus 2019) Word. In the application there is clipboard. i was able to copy equation and paste the equation correctly before few days. currently there is some issue with MS .net Framework. Due to which i am unable to copy the equation in the [...] read more
I'm trying to find an elegant way to parse the Clipboard content following a mouse event in C#. I'm currently creating a tool in C# WinForm for the game "PathOfExile" that would basically do the following: On mouse down over an item if the item contain any desirable mod Disable [...] read more
I am getting this error while copying an image code to copy data in wpf app- Clipboard.SetImage(bmp); code to paste copied data in uwp app - DataPackageView dataPackageView = Clipboard.GetContent(); read more
I have an Excel VSTO add-in which copy/pastes shapes from one source worksheet to a destination worksheet (both in same workbook). The destination worksheet contains data entries (one row per entry). A routine performs the following, for each row: 1. Get data 2. Calculate X-Y position based on data 3. [...] read more
> OpenClipboard Failed (Exception from HRESULT: 0x800401D0 > (CLIPBRD_E_CANT_OPEN))' I'm trying to put a text in an excel file (using Interop). String EE = "Some random text here"; Thread thread1 = new Thread(() => Clipboard.SetText(EE)); thread1.SetApartmentState(ApartmentState.STA); //Set the thread to STA thread1.Start(); thread1.Join(); //Wait for the thread to end Microsoft.Office.Interop.Excel.Range [...] read more
I'm new to C# and WPF, i'm using a WPF Datagrid in my Application and on my Work Computer whenever i select some cells and press ctrl + c to copy their content it makes the application go into break mode. The error i'm getting is > Blockquote System.Runtime.InteropServices.COMException: 'OpenClipboard [...] read more
Clipboard.SetText(...) very often creates considerable delay in my GUI. Set aside for now "correct-programming/design", I want to tell the user to wait a moment (line #01), and then let him/her know if succeeded or failed (lines #06 and #10). The thing is that I never see the "Copying..." text (line [...] read more
First to explain im new to php and im very new to preg_match and find it confusing, what im trying to do is find a keyword: exception: and then starting from the next line pull out 300 characters I already have a pregmatch in place for this but want to [...] read more