471,356 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

can't clear clipboard


hello
in my program,i have following method,it copy a jpg file to clipboard,and
works well:

Private Sub CopyImage()
Dim file As System.IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("P roductCatalog.Nwind.jpg")
Clipboard.SetDataObject(System.Drawing.Image.FromS tream(file),
false)
End Sub
but after i exit the program,i open a word document,and from the menu select
"paste" command,the jpg picture still can be pasted,that means the clipboard
isn't cleared,if i modify the second line of the method as:

Clipboard.SetDataObject(System.Drawing.Image.FromS tream(file), true)

the clipboard still can't be cleared,why?is it a bug?

thank you.

Jul 21 '05 #1
0 1031

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by S Shulman | last post: by
2 posts views Thread by zbcong | last post: by
3 posts views Thread by Gary | last post: by
3 posts views Thread by Scott Friedrich | last post: by
3 posts views Thread by SAL | last post: by
7 posts views Thread by Dave Booker | last post: by
15 posts views Thread by Peter Duniho | 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.