Author: Amulu | Posted on: 8/6/2008 12:05:10 PM | Views : 299

Hi ,
I have an application from which the users can download the images. Now there is a new requirement asking to copy images to the clicpBoard on the click of a button.System.Drawing.Image orgImage = System.Drawing.Image.FromFile("C:\\LibraryDemos\\Images\\Sample\\tblItem833\\d5168d50-e959-475d-8031-c5f46dcdc144.jpg");
 

System.Windows.Forms.Clipboard.SetDataObject(orgImage);

 I ' m trying this  to start with and I' m getting this error message

 Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked ...

Go to the complete details ...