Ejemplo n.º 1
0
        public void SetLocationDirectly(int x, int y)
        {
            if (this.InvokeRequired)
            {
                SetLocationCallBack aSetLocationCall = new SetLocationCallBack(SetLocationDirectly);
                this.Invoke(aSetLocationCall, new object[] { x, y });
                return;
            }

            this.Location = new Point(x, y);
            this.Invalidate();
        }
Ejemplo n.º 2
0
        public void SetLocationDirectly(int x, int y)
        {
            if (this.InvokeRequired)
            {
                SetLocationCallBack aSetLocationCall = new SetLocationCallBack(SetLocationDirectly);
                this.Invoke(aSetLocationCall, new object[] { x, y });
                return;
            }

            this.Location = new Point(x, y);
            this.Invalidate();
        }