Well, I've never had to try it, but the following seems to work:
private static void CopyControl(Control target)
{
if (target == null) throw new
ArgumentNullException("target");
using (Bitmap bmp = new Bitmap(target.Width,
target.Height))
{
target.DrawToBitmap(bmp, new Rectangle(new Point(0,0),
target.Size));
Clipboard.SetImage(bmp);
}
}
I stress that I don't know if there are any problems using this
approach...
Marc