public void ChangeX(Rainmeter.Settings.InstanceSettings Instance, string sX) { try { // If the position is changed, make sure the form's auto-location is disabled. if (this.StartPosition != FormStartPosition.Manual) { this.StartPosition = FormStartPosition.Manual; } // Notice that we need the position of the parent window for offset location. // // The Rainmeter class does this for us this.Location = new System.Drawing.Point(Rainmeter.ConfigX(Rainmeter.SkinName(Instance)) + int.Parse(sX), this.Location.Y); } catch { } }