P
Pohihihi
Why can't the following work when it has a set property defined?
this.textBox1.Size.Width = 25;
I get error
Cannot modify the return value of 'System.Windows.Forms.Control.Size'
because it is not a variable
but following works
Size s = new Size(textBox1.Size.Width + 5, textBox1.Size.Height);
this.textBox1.Size = s;
What is the sence in giving comment for properties get and set?
Documentation error maybe?
this.textBox1.Size.Width = 25;
I get error
Cannot modify the return value of 'System.Windows.Forms.Control.Size'
because it is not a variable
but following works
Size s = new Size(textBox1.Size.Width + 5, textBox1.Size.Height);
this.textBox1.Size = s;
What is the sence in giving comment for properties get and set?
Documentation error maybe?