Clipboard, only works when my form is in system tray.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shuu
    New Member
    • Feb 2008
    • 1

    Clipboard, only works when my form is in system tray.

    Hi

    I have a application that captures the screen och sends the images to a server.
    I want to save the destination URL's (like: http://domain.com/dump/img.jpg) to the clipboard, but this only works when my application is minimized in the system tray.

    I know what the problem is but cant find any solution for it.

    My Code:
    Code:
    Clipboard.SetText(urlFormat, TextDataFormat.Text);
    My problem: When the application windowstate is Normal/maximized only the screenshot will be in the clipboard, or that is the only I can paste in MS Paint.

    When the window is minimized the code works as expected.
    What to do?
Working...