So the code is:
this.Location = Screen.AllScreens[1].WorkingArea.Location;
problem Message "Index was outside the bounds of the array." string
Index was outside the bounds of the array
Change your code to this
this.Location = Screen.AllScreens[0].WorkingArea.Location;