So... I have recently been developing a Winforms C# application in .NET 2.0 that uses the Shell Style drag and drop described in the great tutorial here: http://blogs.msdn.com/b/adamroot/archive/2008/02/19/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx This was used to give a semi-transparent image of the dragged control during the drag action. However, a secondary functionality is that [...] read more
I am working on a simple UWP application written in C++/WinRT under Windows 10 that contains two ListView controls. The goal of this application is to learn how to select an item from one ListView control, drag it to the other ListView control, and drop the item so that it [...] read more
Here is what I try to get the Clipboards text in js: function getClipboard() { var content = Windows.ApplicationModel.DataTransfer.Clipboard.getContent(); if ( content.contains(Windows.System.string) ) { var text = content.getTextAsync(Windows.System.string); $('section#show-clipboard #textarea').text(text); } else {}; }; I am using the Clipboard.getContent() and the DataPackageView.getTextAsync(Windows.System.String) Methods. The interesting thing is that it does [...] read more
I have a program which is able to exchange data with MS Office applications, via the clipboard. This works fine in Office 2007 and Windows Vista/XP, but fails with Office 2010/Windows 7 IDataObject *d = NULL; HRESULT hr = ::OleGetClipboard(&d); if (hr == S_OK) { FORMATETC formatEtc; formatEtc.cfFormat = ::RegisterClipboardFormat("Native"); [...] read more