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..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ali jazaPosted Aug 13, 2008, 4:36 PM
Bitmap myBitmap = new Bitmap(path);
Clipboard.SetDataObject(myBitmap);
DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);
if (richTextBox1.CanPaste(myFormat))
richTextBox1.Paste(myFormat);