473,473 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Multiple Paste

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?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Jan 22 '06 #1
4 1527
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

"Thom Little" <th**@tlanet.net> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Jan 22 '06 #2
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.

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Peter McMahon" <pe***@nospam.dotnet.za.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

"Thom Little" <th**@tlanet.net> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--


Jan 22 '06 #3
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

"Thom Little" <th**@tlanet.net> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
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.

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Peter McMahon" <pe***@nospam.dotnet.za.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

"Thom Little" <th**@tlanet.net> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--



Jan 23 '06 #4
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.

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Peter McMahon" <pe***@nospam.dotnet.za.net> wrote in message
news:un**************@TK2MSFTNGP11.phx.gbl...
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

"Thom Little" <th**@tlanet.net> wrote in message
news:uy**************@TK2MSFTNGP10.phx.gbl...
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.

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Peter McMahon" <pe***@nospam.dotnet.za.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

"Thom Little" <th**@tlanet.net> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
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?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--




Jan 23 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Londeck | last post by:
I am using Visual Basic 2003 and I have written a notepad like application using the RichTextBox control. I am having trouble trying to emulate Microsoft Words text block copy/paste feature. In...
8
by: Peter A. Schott | last post by:
Per subject - I realize I can copy/paste a line at a time into an interactive session when I'm trying to debug, but was wondering if there is any tool out there that allows me to copy sections of...
1
by: andree | last post by:
Hello, I have a form where a user may paste multiple records. The form has an AfterInsert procedure. The procedure copies the newly inserted record into a different table for audit purposes. ...
2
by: Greg | last post by:
Hi all, Is there a way to copy multiple objects into the clipboard and then paste them? What I want to achive is to be able to copy UI controls (textedits, dropdowns, etc) from one form and...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
5
by: Kaur | last post by:
Hi, I have been successful copying a vba code from one of your posts on how to copy and paste a record by declaring the desired fields that needs to be copied in form's declaration and creating two...
7
by: Chacko | last post by:
Hi could anyone tell me how to simulate multiple clients for a windows form without actually me having to copy paste the code. Cause its a real pain.... The thing is i am working on remoting which...
4
4Him
by: 4Him | last post by:
First off, let me say this is a great site! I've just started working with Access and much of my success is from what I've read here! Background: I have a form, driven off a single table. Goal:...
4
by: phill86 | last post by:
Hi, i have a form that runs a query in a recordset on the after update method if i copy and paste one record at a time the query picks up the records in the underlying table but if i paste...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.