Skip to content

Image from clipboard to wordpad

try abc

try abc

Asked May 1, 2008, 2:14 AM EDT1 answer
Share
LinkedInX
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..

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    string path = @"C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg";
    Bitmap myBitmap = new Bitmap(path);
    Clipboard.SetDataObject(myBitmap);
    DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);
    if (richTextBox1.CanPaste(myFormat))
        richTextBox1.Paste(myFormat);
    0