AMON
March 17th, 2003, 05:40 PM
I'm getting the following error message, and can't figure out why:
C:\CPP\MyTestApp\MyTestApp\FormMain.cs(118): Cannot modify the return value of 'System.Windows.Forms.Control.Location' because it is not a variable
Here is the line of code it refers to:
this.Location.X = Convert.ToInt32(ReadXMLConfigFile ("WindowLocationX"));
Any idea why "this.Location.X" is not a variable, when it takes an INT?
Thanks! :)
- Adrian
C:\CPP\MyTestApp\MyTestApp\FormMain.cs(118): Cannot modify the return value of 'System.Windows.Forms.Control.Location' because it is not a variable
Here is the line of code it refers to:
this.Location.X = Convert.ToInt32(ReadXMLConfigFile ("WindowLocationX"));
Any idea why "this.Location.X" is not a variable, when it takes an INT?
Thanks! :)
- Adrian