Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C Sharp
Clipboard
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Alan T
#1
Clipboard
Nov 14 '06, 04:25 AM
How to I save the contents of clipboad to the variable and reassign the
content back to the clipboard ?
Cor Ligthert [MVP]
#2
Nov 14 '06, 04:45 AM
Re: Clipboard
Clipboard Class (System.Windows.Forms)
http://msdn2.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx
Provides methods to place data on and retrieve data from the system Clipboard. This class cannot be inherited.
"Alan T" <alanpltseNOSPA M@yahoo.com.aus chreef in bericht
news:e4gRdf6BHH A.4908@TK2MSFTN GP03.phx.gbl...
How to I save the contents of clipboad to the variable and reassign the
content back to the clipboard ?
>
Comment
Post
Cancel
Alan T
#3
Nov 15 '06, 06:15 AM
Re: Clipboard
Hi,
I use the following to save the content and restore to the clipboard but
finally the clipboard is empty:
private IDataObject _clipboardConte nt;
private void StoreClipboardC ontent()
{
_clipboardConte nt = Clipboard.GetDa taObject();
}
private void RestoreClipboar dContent()
{
Clipboard.SetDa taObject(_clipb oardContent, true);
}
As I called:
StoreClipboardC ontent();
rngTarget.Copy( );
rngInsertBookma rk.Paste();
RestoreClipboar dContent();
After application exits, I opened a word document and CTRL-V, there is
nothing to be pasted.
"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
news:%23yB$Fr6B HHA.1224@TK2MSF TNGP04.phx.gbl. ..
Clipboard Class (System.Windows.Forms)
http://msdn2.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx
Provides methods to place data on and retrieve data from the system Clipboard. This class cannot be inherited.
>
"Alan T" <alanpltseNOSPA M@yahoo.com.aus chreef in bericht
news:e4gRdf6BHH A.4908@TK2MSFTN GP03.phx.gbl...
>How to I save the contents of clipboad to the variable and reassign the
>content back to the clipboard ?
>>
>
>
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment