Questions tagged [cut-and-paste]
24 questions
23
votes
4 answers
How does "cut and paste" affect character encoding and what can go wrong?
I have a document A in encoding A displayed in tool A and a document B in encoding B displayed in tool B. If I cut and paste (part of) B into A what might be the resultant character encoding? I realise this depends on tool A and tool B and the…

peter.murray.rust
- 37,407
- 44
- 153
- 217
13
votes
3 answers
Winforms textbox paste unreliable?
We have a standard textbox in a Winforms application which responds to paste (both right-click menu and CTRL+V) in the normal way (ie it pastes) in our dev environment.
At one customer site the paste is mostly completely ignored (behaves as if…

hawbsl
- 15,313
- 25
- 73
- 114
9
votes
1 answer
Can the new WP7 cut and paste functionality be used programmatically?
As the new (January 2011) Update to the Windows Phone Developer Tools adds support for Cut and Paste, can this be used programmatically in code?

Matt Lacey
- 65,560
- 11
- 91
- 143
7
votes
3 answers
Is using D string mixins for code reuse an anti-pattern?
For those of you who are not familiar with D string mixins, they're basically compile-time evals. You can take any compile time string (whether a literal or generated by template metaprogramming or compile time function evaluation) and compile it…

dsimcha
- 67,514
- 53
- 213
- 334
6
votes
2 answers
Replacing dependents with another cell reference in VBA
I've written some VBA code which takes a single cell and identifies all its dependents in the workbook (via a NavigateArrow analysis) and adds their range location to an array. From here I want to be able to update each dependent and change the…

Man of Leng
- 73
- 4
4
votes
2 answers
How to enable copy/cut/paste jMenuItem
I am making text editor in netbeans and have added jMenuItems called Copy,Cut & Paste in the Edit menu.
How do I enable these buttons to perform these functions after actionPerformed()
Here is my attempt:
private void…

donthedestroyer
- 71
- 1
- 7
3
votes
1 answer
Read/Write/Find/Replace huge csv file
I have a huge (4,5 GB) csv file.. I need to perform basic cut and paste, replace operations for some columns.. the data is pretty well organized.. the only problem is I cannot play with it with Excel because of the size (2000 rows, 550000…

notapipe
- 31
- 2
3
votes
1 answer
Google file picker example breaks when you choose different view e.g. google.picker.ViewId.DOCS
I've gotten the google file picker example to work. The example uses the photos view and that works fine. But when I change the view to e.g. google.picker.ViewId.DOCS. Iget a javascript error;
Uncaught SyntaxError: Unexpected token ILLEGAL
I'm…

Ken
- 4,367
- 4
- 28
- 41
2
votes
3 answers
Working with code samples when they're images on a blog
Quick question about something I've ran into alot recently:
So many times I'm looking for information from blogs, and find really interesting and helpful examples, only to discover the blog author has shown the code as an image..
With no…

finoutlook
- 2,523
- 5
- 29
- 43
2
votes
6 answers
What is the easiest way to remove the Silverlight TextBox mouse hover border?
I want to display text in a Silverlight application so that the user can copy and paste it elsewhere (as one is used to doing on an HTML web site).
If I use TextBlock, then the user cannot copy and paste.
Therefore I use TextBox, but it has a…

Edward Tanguay
- 189,012
- 314
- 712
- 1,047
1
vote
1 answer
Excel formula - cut and paste losses the formula in old field
I have a validation in a column of an Excel spreadsheet. When I cut and paste a cell from the column, it losses the validation in that original cell. How can I avoid losing the validation in the original cell?

Mohamed Saligh
- 12,029
- 19
- 65
- 84
1
vote
1 answer
Eclipse: copying a warning to the clipboard
How do you copy a warning from a specific line in Eclipse to the clipboard? I can see it with mouseover, I just can't seem to copy it.
In my "Problems" pane, I have a whole bunch of warnings and can't figure out how to isolate the one for a…

Jason S
- 184,598
- 164
- 608
- 970
1
vote
2 answers
Is it possible to detect whether text has been cut and pasted into a textbox on a webpage?
Is it possible using some sort of client side code to detect cut and paste?
The only solution I can think of is to constantly get the text length and if it changes drastically over a certain period, then assume text was pasted.

Diskdrive
- 18,107
- 27
- 101
- 167
1
vote
1 answer
Cut and paste out of/ into text fields in a separate window doesn't work
I have a Macintosh Mozilla plugin which puts up a separate window for login information.
It seems to work fine, it gets keyboard events like typing and hitting
return to hit the default button. HOWEVER, it doesn't seem to get cut
and paste events.…

Brian Postow
- 11,709
- 17
- 81
- 125
0
votes
1 answer
cut and paste a small image into a larger image in Emgu (a wrapper for Python)
I am trying to paste a small image Size(100, 100) into a larger image Size(500, 500) at a location point(10,10) in the larger image using emgu (a wrapper for Python) using vb.net/C#.
I've tried setting the larger images ROI to Rectangle(Point(10,0),…

Doug Schofield
- 21
- 4