Using Clipboard
Clipboard.SetText(txtClipboard.Text);
txtClipboard.Text = Clipboard.GetText();
Clipboard.Clear();
Image myImage = Image.FromFile(selImage.FileName);
Clipboard.SetImage(myImage);
}
txtClipboard.Text = Clipboard.GetText();
Clipboard.Clear();
//get the selected image into clipboard
OpenFileDialog selImage;
if (selImage.ShowDialog() == DialogResult.OK)
{Image myImage = Image.FromFile(selImage.FileName);
Clipboard.SetImage(myImage);
}
clipBoardImage.Image
= Clipboard.GetImage();
Comments
Post a Comment