Set both text and image to clipboard at a time

Posted by Madhu.b.rokkam under Windows Forms category on | Points: 40 | Views : 4894
private void btnSet_Click(object sender, EventArgs e)
Image bitmap = Bitmap.FromFile(@"C:\Users\Madhu\Pictures\vijay.bmp");
DataObject dataobj = new DataObject();
dataobj.SetText("Welcome to Dotnet Funda!");

This sets both the text and image to the clipboard at a time.

Comments or Responses

Login to post response