Form.Location cannot be set
Posted: Fri Apr 27, 2007 7:06 pm
[Using RanorexPro 1.1.0.0 in C# with .NET 2.0]
If I have a form, the following code works:
But if I try to set the location, i.e.:
The compiler gives the error: Cannot modify the return value of 'Ranorex.Control.Location' because it is not a variable.
So how do I move a form?
Thanks.
If I have a form, the following code works:
Code: Select all
Form form = ... some form ....
int x = form.Location.X;
Code: Select all
form.Location.X = 5;
So how do I move a form?
Thanks.