Can’t copy to clipboard
From: Dennis (anonymous_at_discussions.microsoft.com)
Date: 02/19/04
- Next message: Raymond: "Download and open files on the Internet through a PROXY-server"
- Previous message: Tian Min Huang: "RE: Application termination in debugger"
- Next in thread: Jeff Gaines: "Re: Can’t copy to clipboard"
- Reply: Jeff Gaines: "Re: Can’t copy to clipboard"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Feb 2004 07:56:05 -0800
I get the following exception when I try to put a string in the clipboard:
Unhandled Exception: System.Runtime.InteropServices.ExternalException: The requested clipboard operation failed.
at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy)
Could anyone tell me what’s wrong with this program? Thanks
using System.Windows.Forms;
public class Test
{
public static void Main()
{
Clipboard.SetDataObject("test", true);
}
}
- Next message: Raymond: "Download and open files on the Internet through a PROXY-server"
- Previous message: Tian Min Huang: "RE: Application termination in debugger"
- Next in thread: Jeff Gaines: "Re: Can’t copy to clipboard"
- Reply: Jeff Gaines: "Re: Can’t copy to clipboard"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|