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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?=

    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 .ExternalExcept ion: 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.D RMainForm.mnuCo pyIndexName_Cli ck(Object 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."

  • =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?=

    #2
    [SOLVED] Clipboard.SetTe xt(...) fails on Vista but successfully on Windows 2000/XP

    Yeah, it has been solved, have a look at the
    "UIPermissi on" 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ü" <kareem114@hotm ail.comschrieb im Newsbeitrag
    news:eNtLk6c7IH A.2224@TK2MSFTN GP05.phx.gbl...
    Hi,
    >
    why do i get this on Vista, while trying to set text to clipboard:
    >
    Error: System.Runtime. InteropServices .ExternalExcept ion: 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.D RMainForm.mnuCo pyIndexName_Cli ck(Object 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."

    Comment

    Working...