my intention is to send a email with the current chart of the strategy. Is there a possiblity to get the chart by file or to get the current form?
I tried this but I have no chance to get the current form informations:
Rectangle bounds = this.Bounds;
using(Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height))
{
using(Graphics g = Graphics.FromImage(bitmap))
{
g.CopyFromScreen(new Point( bounds.Left,bounds.Top), Point.Empty, bounds.Size);
using (MemoryStream ms = new MemoryStream())
{
bitmap.Save(ms, ImageFormat.Jpeg);
bytes = ms.ToArray();
}
}
Well - currently I'm not able to get the bounds of the current window of the strategy.
Comment