1
Answer

Error in Disabling the Max, Min and Restore Buttons

law

law

15y
2.2k
1
Hi All,

I have used the 2003 VS.net to set the attributes in Vista, however, it doesn't show what I wanna show.

The code is below:


            this.ControlBox = false;
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.panel2);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Form2";
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text = "Form2";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.panel1.ResumeLayout(false);
            this.ResumeLayout(false);
Answers (1)