Can’t copy to clipboard

From: Dennis (anonymous_at_discussions.microsoft.com)
Date: 02/19/04


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);
        }
}



Relevant Pages

  • RE: Load Testing Errors
    ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... > System.Web.UI.DataBinder.GetPropertyValue(Object container, String ... > propName, String format) +11 ...
    (microsoft.public.dotnet.framework.performance)
  • RE: Load Testing Errors
    ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... > System.Web.UI.DataBinder.GetPropertyValue(Object container, String ... > propName, String format) +11 ...
    (microsoft.public.dotnet.general)
  • RE: Load Testing Errors
    ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... > System.Web.UI.DataBinder.GetPropertyValue(Object container, String ... > propName, String format) +11 ...
    (microsoft.public.dotnet.security)
  • Re: ASP Syntax using Variable for DropDownList1 as criteria in Pervasive SQL query
    ... An unhandled exception was generated during the execution of the ... behavior, String method, Boolean needReader, ObjectmethodArguments, ... DataTabledatatables, Int32 startRecord, Int32 maxRecords, String ... startRecord, Int32 maxRecords, String srcTable, IDbCommand command, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I diagnose an error?
    ... > customErrors in the server's .config file. ... An unhandled exception occurred during the execution of the ... > be identified using the exception stack trace below. ... > visa.dps.ppc.RemoteClsConversion.GetHTML(String strXMLFile, String ...
    (microsoft.public.dotnet.framework.aspnet)