public Form1() { this.FormBorderStyle = FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = true; InitializeComponent(); newPanel = new MYPanel(); }