//using System.Drawing;
//using System.Drawing.Imaging;
private void button1_Click(object sender, EventArgs e)
{
//用法
F(textBox1, @"D:\1.jpg");
MessageBox.Show("ok");
}
///
/// 保存控件图片
///
/// 控件
/// 文件名
public static void F(Control c, string f)
{
Bitmap i = new Bitmap(c.Width, c.Height);
c.DrawToBitmap(i, c.ClientRectangle);
i.Save(f, ImageFormat.Jpeg);
}
不是有个 imagebutton吗