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
0
1. Example
Project: DFAssist
Source File: OverlayFormMove.cs
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(); }
0
2. Example
Project: SystemEx
Source File: Form.cs
Source File: Form.cs
protected override void OnLocationChanged(EventArgs e) { base.OnLocationChanged(e); _fixer.OnLocationChanged(e); }
0
3. Example
Project: CircularProgressBar
Source File: CircularProgressBar.cs
Source File: CircularProgressBar.cs
protected override void OnLocationChanged(EventArgs e) { base.OnLocationChanged(e); Invalidate(); }
0
4. Example
Project: NClass
Source File: Canvas.cs
Source File: Canvas.cs
protected override void OnLocationChanged(EventArgs e) { base.OnLocationChanged(e); UpdateWindowPositions(); }
0
5. Example
Project: MaterialWinforms
Source File: MaterialTabSelector.cs
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)); }
0
6. Example
Project: MaterialWinforms
Source File: MaterialRaisedButton.cs
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)); }
0
7. Example
Project: OpenLiveWriter
Source File: AutoCompleteTextbox.cs
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)); } }
0
8. Example
Project: NClass
Source File: Canvas.cs
Source File: Canvas.cs
protected override void OnLocationChanged(EventArgs e) { base.OnLocationChanged(e); UpdateWindowPositions(); }
0
9. Example
Project: ATF
Source File: MainForm.cs
Source File: MainForm.cs
protected override void OnLocationChanged(System.EventArgs e) { SetBounds(); base.OnLocationChanged(e); }
0
10. Example
Project: screencast-capture
Source File: CaptureRegion.cs
Source File: CaptureRegion.cs
protected override void OnLocationChanged(EventArgs e) { base.OnLocationChanged(e); update(); }
0
11. Example
Project: ClearCanvas
Source File: MagnificationForm.cs
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) }
0
12. Example
Project: Unity-WinForms
Source File: Control.cs
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); }