471,355 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,355 software developers and data experts.

Copy, Paste and Cut in C#?

Hello,

How can I add copy paste and cut to my browser in C#? I have the menu items
labeled Copy, Paste and Cut. Now I just need the code?

Mateusz
Dec 11 '05 #1
3 9154
Hi,

Check out http://www.codeproject.com/csharp/clipboard01.asp

Regards - Octavio

"Mateusz Rajca" <Ma**********@discussions.microsoft.com> escribió en el
mensaje news:77**********************************@microsof t.com...
Hello,

How can I add copy paste and cut to my browser in C#? I have the menu
items
labeled Copy, Paste and Cut. Now I just need the code?

Mateusz

Dec 11 '05 #2
Hi Mateusz,

I suppose you mean copying from a Internet explorer.
You will have to do this using javascript and the internal internet explorer
features (don't know about mozilla)

The command you are looking for is execCommand("Copy");

I found a small tutorial for you :
http://www.htmlgoodies.com/beyond/ja...le.php/3458851

Kind Regards
--
Rainier van Slingerlandt
(Freelance trainer/consultant/developer)
www.slingerlandt.com
"Mateusz Rajca" wrote:
Hello,

How can I add copy paste and cut to my browser in C#? I have the menu items
labeled Copy, Paste and Cut. Now I just need the code?

Mateusz

Dec 12 '05 #3
Hi,

Not clear what you want, in any case you have a Clipboard class in .net
take a look at it and if it does not fit your need, just post back with more
details

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Mateusz Rajca" <Ma**********@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
Hello,

How can I add copy paste and cut to my browser in C#? I have the menu
items
labeled Copy, Paste and Cut. Now I just need the code?

Mateusz

Dec 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Legendary Pansy | last post: by
3 posts views Thread by Rachel Suddeth | last post: by
2 posts views Thread by Matt | last post: by
7 posts views Thread by lgbjr | last post: by
6 posts views Thread by Ben R. | last post: by
17 posts views Thread by Steve | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.