Software Code
    New Code     Most Interesting     Don't Miss     Our picks  
C# - section

View Article
Clipboard.GetDataObject() returns null
Clipboard.GetDataObject() returns null when used in a Thread
The problem is that Clipboard.GetDataObject() used in a thread returns null.

To solve this, use the following code when spawning the thread:

Thread mt = new Thread(new ThreadStart(someThread))
Date: 2009-2-15    Written by: Admin A
     See all articles in this section
Copyright © 2007-2009 SoftwareRiviera.com. All rights reserved.  | Terms of use | Disclaimer | Privacy Policy |