I've been trying to use a button to extend the size of my form. However, for some reason, it won't let me do this. I'd think this would be an easy thing to accomplish, but I get the error:
"An object reference is required for the non-static field, method, or property 'System.Windows.Forms.Control.Width.get'
The code I'm using that causes that error is
private void options_Click(object sender, EventArgs e)
{
FileSortForm.Height = 470;
}
FileSortForm is the name of my Form. Also, from the advice of another site, I added this code into the Form Load code.
this.Size = new System.Drawing.Size(693, 603);