private void buttonOpenPaintPanel_Click(object sender, EventArgs e) { var paintForm = new PaintPanel(); paintForm.ShowDialog(); }