SaveImage(string filename){
using (Bitmap bmp = new Bitmap(userControl1.Width, userControl11Height))
{userControl1.DrawToBitmap(bmp, userControl1.ClientRectangle);
bmp.Save(filename);
}
}
SaveImage(string filename){
using (Bitmap bmp = new Bitmap(userControl1.Width, userControl11Height))
{}
}