By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,376 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,376 IT Pros & Developers. It's quick & easy.

Copying to clipboard

P: n/a
Hi

How can I copy some text to the clipboard so it can be pasted into other
apps?

Thanks

Regards
Nov 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Cor
Hi John,

Copy
\\\
Me.textbox1.SelectAll()
Clipboard.SetDataObject(me.textbox1.SelectedText)
///
Paste
\\\
Dim iData As IDataObject = Clipboard.GetDataObject()
If iData.GetDataPresent(DataFormats.Text) Then
Me.textbox2.Text = CType(iData.GetData(DataFormats.Text), String)
Else
Me.textbox2.Text = ""
End If
///
I hope this helps a little bit?

Cor
How can I copy some text to the clipboard so it can be pasted into other
apps?

Nov 20 '05 #2

P: n/a
"John" <jo**@nospam.infovis.co.uk> schrieb

How can I copy some text to the clipboard so it can be pasted into
other apps?

http://msdn.microsoft.com/library/en...ardSupport.asp
--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

Nov 20 '05 #3

P: n/a
* "Armin Zingler" <az*******@freenet.de> scripsit:
How can I copy some text to the clipboard so it can be pasted into
other apps?


http://msdn.microsoft.com/library/en...ardSupport.asp


Thanks, that helped.

:-)

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4

P: n/a
Herfried K. Wagner [MVP] wrote:
* "Armin Zingler" <az*******@freenet.de> scripsit:
How can I copy some text to the clipboard so it can be pasted into
other apps?

http://msdn.microsoft.com/library/en...opClipboardSup
port.asp
Thanks, that helped.

:-)

***Sigh***
--
Slonocode

"I've got a fever...and the only prescripiton is more cowbell"

Nov 20 '05 #5

P: n/a
Cor

"> >
http://msdn.microsoft.com/library/en...ardSupport.asp

Thanks, that helped.


???
Nov 20 '05 #6

P: n/a
"Cor" <no*@non.com> schrieb

http://msdn.microsoft.com/library/en...ardSupport.asp

Thanks, that helped.


???


I guess, he didn't find it.
--
Armin

http://learn.to/quote
http://www.plig.net/nnq/nquote.html

Nov 20 '05 #7

P: n/a
Cor
Armin,
I think too, but it was there I did not know it till now, I was used that
there was an win32 example.
Saved it of course
:-)
Cor
Nov 20 '05 #8

P: n/a
In VB You have a intrinsic object called CLIPBOARD and it has its
methods such as SetObjectData and GetObjectData for you to store
something into the clipboard and later retrieve it.

Keyur Shah
Verizon Communications
732-423-0745

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.