Clipboard.SetText(...) fails on Vista but successfully on Windows 2000/XP

K

Kerem Gümrükcü

Hi,

why do i get this on Vista, while trying to set text to clipboard:

Error: System.Runtime.InteropServices.ExternalException: Der angeforderte
Clipboard-Vorgang war nicht erfolgreich.
bei System.Windows.Forms.Clipboard.ThrowIfFailed(Int32 hr)
bei System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean
copy, Int32 retryTimes, Int32 retryDelay)
bei System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat
format)
bei System.Windows.Forms.Clipboard.SetText(String text)
bei DeviceRemover.DRMainForm.mnuCopyIndexName_Click(Object sender,
EventArgs e)

This is pretty sure that it is some access/security stuff, but how can
i handle it,...

TIA

Regards

Kerem


--
 
K

Kerem Gümrükcü

Yeah, it has been solved, have a look at the
"UIPermission" Class in the Net Framework,...

Regards

Kerem

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

copy to clipboard error 3

Top