473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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

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
1 2389
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
5
by: DraguVaso | last post by:
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in...
5
by: Gernot Frisch | last post by:
How can I put text from a <textarea name="test"></textarea> into my clipboard (Windows, Firefox+IE). -- -Gernot int main(int argc, char** argv) {printf ("%silto%c%cf%cgl%ssic%ccom%c", "ma",...
7
by: Newbie | last post by:
How do I clear the clipboard in VB.NET 2003? TIA Newbie
15
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the...
1
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active...
1
by: =?Utf-8?B?SHVtYW0=?= | last post by:
I am developing a windows service that read data from a device attached to a PC via serial port, then service should put the data in the clipboard. I am writing this code: Clipboard.Clear();...
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm using the following in my console app: My.Computer.Clipboard.SetText(sb.ToString()) i'm getting inconsistent results with the copy. sometimes it works and most of the time i get...
23
by: Over | last post by:
Hi it's possible with language C, (Mingw or Djgpp) copying the clipboard of WinXp into file.txt? which function must be use. Thanks
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.