private void ShowPrintPreview() { if (printPreviewForm == null) { printPreviewForm = new PrintPreviewForm(); } printPreviewForm.GraphPanel = this.gPane; printPreviewForm.Show(); printPreviewForm.TopMost = true; printPreviewForm.Invalidate(); }