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

  • Thread starter Thread starter Kerem Gümrükcü
  • Start date Start date
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


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

Regards

Kerem

--
 
Back
Top