public Form1() { InitializeComponent(); this.flowChart1.DocExtents = new RectangleF(-10.0F, -10.0F, 120.0F, 120.0F); ZoomToRect(visibleRect); int previewY = 0; for (int i = 0; i < previewCount; i++) { int height = (int)(400.0 / Math.Pow(2.0, (i + 1.0))); previews[i] = new Preview(this, showPreviewToolStripMenuItem, height, previewY); previewY += height + 2; previews[i].Owner = this; } UpdatePreviews(); ResetFlowChart(true); }