tagged [clipboard]
Create and Copy hyperlink with text/caption to Clipboard with c#
Create and Copy hyperlink with text/caption to Clipboard with c# In all sorts of programs you can copy hyperlinks to clipboard and paste them into other applications. E g the ’feedback always welcome’...
Cut files to clipboard in C#
Cut files to clipboard in C# I'm looking for a way to programmatically cut a file to the clipboard, for example, some call to a function in C# that does the same as selecting a file in the [Windows Ex...
How do I monitor clipboard content changes in C#?
How do I monitor clipboard content changes in C#? I want to have this feature in my C# program: When the user do + or Copy anywhere (i.e. when the clipboard content changes), my program will get notif...
Copy and Modify selected text in different application
Copy and Modify selected text in different application I have a windows application running at the backend. I have functions in this applications mapped to hot keys. Like if I put a message box into t...
Read and Write to the clipboard
Read and Write to the clipboard I have this snippet on Windows (VS2017 Community) on Unity 5.6: ``` public static void setClipboardStr(string str) { try { if (Clipboard.ContainsText()) { ...
- Modified
- 30 Jul at 03:5
JavaScript get clipboard data on paste event (Cross browser)
JavaScript get clipboard data on paste event (Cross browser) How can a web application detect a paste event and retrieve the data to be pasted? I would like to remove HTML content before the text is p...
- Modified
- 11 Dec at 12:39
How does Trello access the user's clipboard?
How does Trello access the user's clipboard? When you hover over a card in [Trello](http://en.wikipedia.org/wiki/Trello) and press +, the URL of this card is copied to the clipboard. How do they do th...
- Modified
- 3 Aug at 17:19
Clipboard Copying objects to and from
Clipboard Copying objects to and from I am trying to copy an object onto the windows clipboard and off again. My code is like this: Copy on to clipboard: Where `prompts` is a `List` collection. Copy o...
Copying From and To Clipboard loses image transparency
Copying From and To Clipboard loses image transparency I've been trying to copy a transparent PNG image to clipboard and to paste it into a specific program that supports it. I tried many solutions al...
- Modified
- 27 Mar at 08:33
How to paste CSV data to Windows Clipboard with C#
How to paste CSV data to Windows Clipboard with C# ## What I'm trying to accomplish - - - - - ## What I have tried that isn't working Clipboard.SetText() Clipboard.SetData() ``` System.Windows.Forms.C...
Webcam usage in C#
Webcam usage in C# I am making a program in C# to connect to a webcam and do some image manipulation with it. I have a working application that uses win32 api (avicap32.dll) to connect to the webcam a...
How can I get an image out of the clipboard without losing the alpha channel in .NET?
How can I get an image out of the clipboard without losing the alpha channel in .NET? I'm trying to save a copied image from the clipboard but it's losing its alpha channel: If I copy a 32bit image fr...
How can I make a background worker thread set to Single Thread Apartment?
How can I make a background worker thread set to Single Thread Apartment? I am creating an automated test running application. In this part of the application, I am working on a polling server. It wor...
- Modified
- 14 Feb at 09:51
Copy output of a JavaScript variable to the clipboard
Copy output of a JavaScript variable to the clipboard I have no knowledge of JavaScript, but I managed to put this code together using bits and bolts from various Stack Overflow answers. It works OK, ...
- Modified
- 6 Mar at 11:2
How to handle a blocked clipboard and other oddities
How to handle a blocked clipboard and other oddities Over the course of the last couple of hours I have been tracking down a fairly specific bug with that occurs because another application has the cl...
Copy to Clipboard in Ruby, HTML or C#
Copy to Clipboard in Ruby, HTML or C# How do you copy text to the clipboard in Ruby? Sounds simple right? But I've been trying to do this for 5 days now, with no success. I searched on internet, but a...
Get CSV Data from Clipboard (pasted from Excel) that contains accented characters
Get CSV Data from Clipboard (pasted from Excel) that contains accented characters ## SCENARIO - - ## THE PROBLEM - - - ## SOURCE CODE - ORIGINAL - WITH THE PROBLEM ``` [STAThread] static void Main(str...
- Modified
- 9 Jun at 03:2
Convert BMP to PNG in memory for Clipboard pasting in .Net
Convert BMP to PNG in memory for Clipboard pasting in .Net This [similar question's](https://stackoverflow.com/questions/41665/bmp-to-jpg-png-in-c) answers all require the file to be saved. However, I...
- Modified
- 23 May at 12:32
How do I backup and restore the system clipboard in C#?
How do I backup and restore the system clipboard in C#? I will do my best to explain in detail what I'm trying to achieve. I'm using C# with IntPtr window handles to perform a CTRL-C copy operation on...
Clipboard behaves differently in .NET 3.5 and 4, but why?
Clipboard behaves differently in .NET 3.5 and 4, but why? We recently upgraded a very large project from .NET framework 3.5 to 4, and initially everything seemed to work the same. But now bugs have st...
OpenClipboard failed when copy pasting data from WPF DataGrid
OpenClipboard failed when copy pasting data from WPF DataGrid I've got a WPF application using datagrid. The application worked fine until I installed Visual Studio 2012 and Blend+SketchFlow preview. ...
- Modified
- 17 Jan at 16:16