copy-paste

visual studio 2008 pasting text freeze IDE

has anyone else experienced this . I have SP1 but i have to kill and restart VS2008 10 times a day due to this copy / paste problem. any suggestions? ...

Excel VBA Macro: Check content (of clipboard?) before pasting

Hi, I've had some serious issues with pasting data from various sources into Excel. Excel tends to try to be smart and does all kinds of silly formating. We need the data as text. The problem is that we have a lot of users, and many of them are not very experienced with computers, so asking them to use right-click and 'Paste Special' ...

Deploying an ASP.NET Web Application to an Intranet

Hello: I have an ASP.NET web application that I just completed. I am now preparing to deploy the application to my company's intranet. I wanted to prepare the files so that I can simply give them to my company's IT group for uploading. I reviewed some of the previous Q&As posted on this website; however, there doesn't appear to be a ...

How to catch Ctrl+C key event with Qt when Ctrl is released before 'C'?

I would like to call some custom copy code when the user releases Ctrl+C. When 'C' is released before Ctrl, Qt sends a key event that matches with QKeySequence::Copy. When Ctrl is released before 'C', the release event does not match. When the key release event comes in with Ctrl, is there a way to see if 'C' is still being held down? ...

copy/paste event listener in C#

Hello, I'm new to C# (I'm used to Java) and am trying to implement a listener that can run in the background of a Windows XP computer and be able to see when a user does a copy, cut, or paste operation. I found this page: http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.data.schema.project.project.utilities.actionabledatab...

How can I access the copy buffer on the web?

Wild question here. Is it possible to access the copy buffer on the web. What I mean is. Can I go into Photoshop. Select a piece of a photo. Copy that piece and paste it into some element. That something would be like a Java applet or Flash or Silverlight or anything. I am just wondering if it is possible and if someone could point me ...

Pasting images into Silverlight

Hi Guys, I am looking for a way to enable my users to paste images into my Silverlight component (into a TextBox, I guess, or is there any better control for doing this?). From what I read on the internet, for security reasons, there is no clipboard access from code, except by using a JavaScript function that works only with IE. But w...

Receiving the Event.COPY event in Flash

Hello, My goal is to know when a user presses the cut, copy, paste, or select all keyboard shortcuts and do some processing for each one. I tried listening for the keypresses, but only some keys are fired when the control key is down (apparently it would work only in the browser, except for IE). Then I was reading the Flash docs and ca...

Prevent table column from being selected and copied in Safari and Firefox?

I'm working on what is basically a small utility that displays a piece of sourcecode in a table which has two columns, one for line numbers and one for the actual source. I found that you can prevent the appearance of text being selected with the following CSS: table th { -moz-user-select: none; -webkit-user-select: none; } Unfortu...

VBA named range offset

Hi I am trying to write VBA code that will select a named range, copy it and paste it for a certain number of rows. What I need to know is how to select the range of cells corresponding to the ones above. E.g. I have a range "myRange" which refers to: "=$A$1:D$1$,$F$1,$K$1". I want to copy this and paste it in "=$A$2:D$2$,$F$2,$K$2" by...

How to automatically append text to text copied with JavaScript

In JavaScript, how can you select text on a website, copy it (by Control+C, Command+C, or Edit Copy) and have JavaScript append a line or two to the clipboard so when the user pastes, the content they copied is shown as well as the extra line? Also, would this be possible to do only within certain <div>s of the site? If so, how? ...

Java: How could I "intercept" Ctrl+C in a CLI application?

Hello! How could I "intercept" Ctrl+C (which normally would kill the process) in a CLI (command line interface) Java application? Does a multi-platform solution exist (Linux, Solaris, Windows)? I'm using Console's readLine(), but if necessary, I could use some other method to read characters from standard input. ...

Disable Copy/Paste into HTML form using Javascript

Is there a way using Javascript to disable the ability to paste text into a text field on an HTML form? E.g. I have a simple registration form where the user is required to input their email twice. The second email entry is to verify there are no typos in the first email entry. However if the user copy/pastes their email then that def...

How to disable Control-C in a WindowsXP Python console program?

I'd like to put my cmd.com window into a mode where Control-C does not generate a SIGINT signal to Python (ActiveState if it matters). I know I can use the signal module to handle SIGINT. The problem is that handling SIGINT is too late; by the time it is handled, it has already interrupted a system call. I'd like something equivalent t...

Making part of a FlowDocument non-selectable

I want to make a FlowDocument that contains both user-specified content, and hyperlinks for manipulating that content. I want the user to be able to highlight the content with the mouse, and copy it to the clipboard. Is there any way to allow that, while preventing the user from highlighting and copying the hyperlinks? (Note that the us...

binary data to and from text conversion

Sometimes i generate data that is as little as 1k. I thought it may be good if i could convert it to text so i can paste it to someone on a forum or on MSN. How can i convert data into text then convert back? How many bits can i use? I must have it compatible with pasting on forums and i would like it to be compatible with msn if the str...

What is wrong with this index definition in this MySQL query?

CREATE TABLE `pastebin` ( `pid` int(11) NOT NULL auto_increment, `poster` varchar(16) default NULL, `posted` datetime default NULL, `code` text, `parent_pid` int(11) default '0', `format` varchar(16) default NULL, `codefmt` mediumtext, `codecss` text, `domain` varchar(255) default '',...

YUI Autocomplete: search after pasting?

I'm using an auto-complete widget from YUI to implement live search as in the examples. However, it works fine when search text is typed in, but fails to work when the text is pasted into the field. Which would be the proper way to initiate an autocompletion on paste? Haven't found anything for that in the documentation... EDIT: Pasting...

Copy from Ms Word and paste into Rich Textbox problem

Hi everybody, I have a problem when pasting ms word content into richtextbox. when I copy content of word document and paste it into richtextbox which is in a windows application written in C#. the links are shown like that ; This is test.. Go to Google. <http://www.google.com&gt; Mail : Project <mailto:[email protected]> The issue can a...

Is there any way to measure the number of errors introduced by copy/pasting code?

I think copy/paste is one of the worst practices there could be in the industry. Copy and paste code snippets it's ok. That's how most of the code is learn in first place, and saves a lot of time. What is definitely harmful ( at least from my point of view ) is to copy one section of code from a class or file within THE SAME PROJECT!....