Multiple Paste

T

Thom Little

I have a form with three textboxes.

In an external C# 2.0 application I need to load the clipboard with three
pieces of information so I can position to the first textbox in the forma
and select paste to paste into all three at the same time.

something like ...

one\ttwo\tthree or one\ntwo\nthree

.... any suggestions?
 
P

Peter McMahon

Hi Thom,

Take a look at the onpaste DOM event in the Internet Development SDK
documentation. If you handle that event using client-side JavaScript (or
VBScript), you may be able to read the contents of the clipboard and set the
values of your three textboxes appropriately.

Cheers,
Peter

Peter McMahon
http://www.dotnet.za.net
 
T

Thom Little

Good idea but I have the inverse problem.

I want to load the clipboard in my Windows application, allow the user to go
to someone else's form (HTML even), and paste three values in three
consecutive textboxes on that form with one paste command.

I only control getting the stuff into the clipboard.
 
P

Peter McMahon

Unless the receiving application handles the onpaste event, I'm afraid I
don't think this is possible (how would the clipboard know which textboxes
to put the data in? Or how to split it? etc.)

Peter
 
T

Thom Little

I was hopping there was a supported delimiter.

I would add the data to the clipboard with delimiters between fields. The
user would position to the first textbox on the foreign form and issue a
Paste. The textboxes would fill and when the delimiter is encountered it
would skip to the next location identified in the tab order.

I didn't think it was possible but was hopping someone else had encountered
a solution that I was overlooking.
 
Joined
Mar 21, 2008
Messages
1
Reaction score
0
Any luck?

Thom,
Did you ever get a solution to this? it will be great if you could share here, if you did get one :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,947
Members
47,499
Latest member
DewittK739

Latest Threads

Top