1
Reply

Error in Disabling the Max, Min and Restore Buttons

law

law

Mar 3 2009 12:09 PM
2.2k
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)