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.