By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,887 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,887 IT Pros & Developers. It's quick & easy.

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

P: n/a
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(Objec t 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(Ob ject sender,
EventArgs e)

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

TIA

Regards

Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Jul 24 '08 #1
Share this Question
Share on Google+
1 Reply


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

Regards

Kerem

--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Kerem Gümrükcü" <ka*******@hotmail.comschrieb im Newsbeitrag
news:eN**************@TK2MSFTNGP05.phx.gbl...
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(Objec t 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(Ob ject sender,
EventArgs e)

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

TIA

Regards

Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.codeplex.com/restarts
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Jul 25 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.