Hello everyone..
I am doing c# project in which i want to paste image in wordpad from clipboard..Anyone have idea how to do it...??
Please help me..
Thanks in advance..
Image from clipboard to wordpad
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

ali jaza2 pointsPosted Aug 13, 2008, 12:36 PM EDT
Bitmap myBitmap = new Bitmap(path);
Clipboard.SetDataObject(myBitmap);
DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);
if (richTextBox1.CanPaste(myFormat))
richTextBox1.Paste(myFormat);