System.Windows.Forms.Control.OnLocationChanged(System.EventArgs)

Here are the examples of the csharp api class System.Windows.Forms.Control.OnLocationChanged(System.EventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

12 Examples 7

1. Example

Project: DFAssist
Source File: OverlayFormMove.cs
protected override void OnLocationChanged(EventArgs e)
        {
            base.OnLocationChanged(e);

            this.m_parent.Left = this.Left + 10;
            this.m_parent.Top  = this.Top;

            Settings.OverlayX = Location.X;
            Settings.OverlayY = Location.Y;
            Settings.Save();
        }

2. Example

Project: SystemEx
Source File: Form.cs
protected override void OnLocationChanged(EventArgs e)
        {
            base.OnLocationChanged(e);

            _fixer.OnLocationChanged(e);
        }

3. Example

Project: CircularProgressBar
Source File: CircularProgressBar.cs
protected override void OnLocationChanged(EventArgs e)
        {
            base.OnLocationChanged(e);
            Invalidate();
        }

4. Example

Project: NClass
Source File: Canvas.cs
protected override void OnLocationChanged(EventArgs e)
		{
			base.OnLocationChanged(e);
			UpdateWindowPositions();
		}

5. Example

Project: MaterialWinforms
Source File: MaterialTabSelector.cs
protected override void OnLocationChanged(System.EventArgs e)
        {
            base.OnLocationChanged(e);
            ShadowBorder = new GraphicsPath();
            ShadowBorder.AddLine(new Point(Location.X, Location.Y + Height), new Point(Location.X + Width, Location.Y + Height));
        }

6. Example

Project: MaterialWinforms
Source File: MaterialRaisedButton.cs
protected override void OnLocationChanged(System.EventArgs e)
        {
            base.OnLocationChanged(e);
            ShadowBorder = new GraphicsPath();
            ShadowBorder.AddRectangle(new Rectangle(this.Location.X,this.Location.Y,Width,Height));
        }

7. Example

Project: OpenLiveWriter
Source File: AutoCompleteTextbox.cs
protected override void OnLocationChanged(EventArgs e)
        {
            base.OnLocationChanged(e);
            if (Owner != null)
            {
                Point p = Owner.Location;
                relativeLocation = Point.Subtract(Location, new Size(p.X, p.Y));
            }
        }

8. Example

Project: NClass
Source File: Canvas.cs
protected override void OnLocationChanged(EventArgs e)
		{
			base.OnLocationChanged(e);
			UpdateWindowPositions();
		}

9. Example

Project: ATF
Source File: MainForm.cs
protected override void OnLocationChanged(System.EventArgs e)
        {
            SetBounds();
            base.OnLocationChanged(e);
        }

10. Example

Project: screencast-capture
Source File: CaptureRegion.cs
protected override void OnLocationChanged(EventArgs e)
        {
            base.OnLocationChanged(e);
            update();
        }

11. Example

Project: ClearCanvas
Source File: MagnificationForm.cs
protected override void OnLocationChanged(System.EventArgs e)
		{
			base.OnLocationChanged(e);

			RenderImage();

			if (base.Visible && base.Owner != null)
				base.Owner.Update(); //update owner's invalidated region(s)
		}

12. Example

Project: Unity-WinForms
Source File: Control.cs
protected void UpdateBounds(int argX, int argY, int argWidth, int argHeight, int argClientWidth, int argClientHeight)
        {
            int widthBuffer = width;
            int heightBuffer = height;

            bool locationFlag = x != argX || y != argY;
            bool sizeFlag = Width != argWidth || Height != argHeight || clientWidth != argClientWidth || clientHeight != argClientHeight;

            x = argX;
            y = argY;
            width = argWidth;
            height = argHeight;
            clientWidth = argClientWidth;
            clientHeight = argClientHeight;

            if (locationFlag)
                OnLocationChanged(EventArgs.Empty);
            if (!sizeFlag)
                return;

            var delta = new Point(widthBuffer - argWidth, heightBuffer - argHeight);
            ResizeChilds(delta);

            OnSizeChanged(EventArgs.Empty);
            OnClientSizeChanged(EventArgs.Empty);
        }