private void buttonCommand13_Click(object sender, CommandEventArgs e) { // take a screenshot ScreenshotDlg dlg = new ScreenshotDlg(currentVis.VisViewControl); dlg.ShowDialog(this); }