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

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

20 Examples 7

1. Example

Project: just-gestures
Source File: CheckListBox.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {

            base.OnClientSizeChanged(e);
            if (this.Visible)
            {
                this.Columns[0].Width = this.ClientSize.Width;
            }
        }

2. Example

Project: winforms-modernui
Source File: MetroTextBox.cs
View license
private void BaseTextBoxClientSizeChanged(object sender, EventArgs e)
        {
            base.OnClientSizeChanged(e);
        }

3. Example

Project: partcover.net4
Source File: TextControl.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            if (view != null)
                view.Bounds = ViewRectangle.Size;
            base.OnClientSizeChanged(e);
        }

4. Example

Project: Mist
Source File: MetroTextBox.cs
View license
private void BaseTextBoxClientSizeChanged(object sender, EventArgs e)
        {
            base.OnClientSizeChanged(e);
        }

5. Example

Project: winauth
Source File: MetroTextBox.cs
View license
private void BaseTextBoxClientSizeChanged(object sender, EventArgs e)
        {
            base.OnClientSizeChanged(e);
        }

6. Example

Project: alphaTab
Source File: AlphaTabControl.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            base.OnClientSizeChanged(e);
            if (ScoreAutoSize)
            {
                ResizeTrack(RenderWidth);
            }
        }

7. Example

Project: NClass
Source File: Canvas.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
		{
			base.OnClientSizeChanged(e);
			OnVisibleAreaChanged(EventArgs.Empty);
		}

8. Example

Project: Unity-WinForms
Source File: Control.cs
View license
protected virtual void SetClientSizeCore(int argX, int argY)
        {
            Size = SizeFromClientSize(argX, argY);
            clientWidth = argX;
            clientHeight = argY;
            OnClientSizeChanged(EventArgs.Empty);
        }

9. Example

Project: magicaltrevor
Source File: NotFound.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            base.OnClientSizeChanged(e);
            base.Invalidate();
        }

10. Example

Project: SciterSharp
Source File: SciterControl.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
		{
			if(SciterWnd._hwnd.ToInt32()!=0)
			{
				var sz = this.Size;
				PInvokeWindows.MoveWindow(SciterWnd._hwnd, 0, 0, sz.Width, sz.Height, true);
			}
			base.OnClientSizeChanged(e);
		}

11. Example

View license
protected override void OnClientSizeChanged(EventArgs e)
		{
			base.OnClientSizeChanged(e);
			UpdateLineNumbers();
		}

12. Example

Project: NClass
Source File: Canvas.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
		{
			base.OnClientSizeChanged(e);
			OnVisibleAreaChanged(EventArgs.Empty);
		}

13. Example

Project: SharpDX
Source File: RenderForm.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            base.OnClientSizeChanged(e);
            if (!isUserResizing && (isSizeChangedWithoutResizeBegin || cachedSize != Size))
            {
                isSizeChangedWithoutResizeBegin = false;
                cachedSize = Size;
                OnUserResized(EventArgs.Empty);
                //UpdateScreen();
            }
        }

14. Example

Project: ultraviolet
Source File: RadiansEditorControl.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            RecalculateSelectionCircle();

            base.OnClientSizeChanged(e);
        }

15. Example

Project: Unity-WinForms
Source File: Control.cs
View license
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);
        }

16. Example

Project: P8Coder
Source File: FastColoredTextBox.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            base.OnClientSizeChanged(e);
            if (WordWrap)
            {
                //RecalcWordWrap(0, lines.Count - 1);
                NeedRecalc(false, true);
                Invalidate();
            }
            OnVisibleRangeChanged();
            UpdateScrollbars();
        }

17. Example

View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            base.OnClientSizeChanged(e);
            if (WordWrap)
            {
                //RecalcWordWrap(0, lines.Count - 1);
                NeedRecalc(false, true);
                Invalidate();
            }
            OnVisibleRangeChanged();
            UpdateScrollbars();
        }

18. Example

Project: dash-core
Source File: FastColoredTextBox.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
        {
            base.OnClientSizeChanged(e);
            if (WordWrap)
            {
                //RecalcWordWrap(0, lines.Count - 1);
                NeedRecalc(false, true);
                Invalidate();
            }
            OnVisibleRangeChanged();
            UpdateScrollbars();
        }

19. Example

Project: ynoteclassic
Source File: FastColoredTextBox.cs
View license
protected override void OnClientSizeChanged(EventArgs e)
		{
			base.OnClientSizeChanged(e);
			if (WordWrap)
			{
				//RecalcWordWrap(0, lines.Count - 1);
				NeedRecalc(false, true);
				Invalidate();
			}
			OnVisibleRangeChanged();
			UpdateScrollbars();
		}

20. Example

Project: NanUI
Source File: ModernUIForm.cs
View license
protected override void SetClientSizeCore(int x, int y)
		{

			if (!IsDesignMode)
			{
				base.SetClientSizeCore(x, y);
			}

			this.clientSizeSet = false;
			FieldInfo fiWidth = typeof(Control).GetField("clientWidth", BindingFlags.Instance | BindingFlags.NonPublic);
			FieldInfo fiHeight = typeof(Control).GetField("clientHeight", BindingFlags.Instance | BindingFlags.NonPublic);
			FieldInfo fi1 = typeof(Form).GetField("FormStateSetClientSize", BindingFlags.NonPublic | BindingFlags.Static),
				fiFormState = typeof(Form).GetField("formState", BindingFlags.NonPublic | BindingFlags.Instance);

			if (IsModernUIEnabled && fiWidth != null && fiHeight != null && fiFormState != null && fi1 != null)
			{
				this.clientSizeSet = true;
				this.Size = SizeFromClientSize(new Size(x, y));
				fiWidth.SetValue(this, x);
				fiHeight.SetValue(this, y);
				BitVector32.Section bi1 = (BitVector32.Section)fi1.GetValue(this);
				BitVector32 state = (BitVector32)fiFormState.GetValue(this);
				state[bi1] = 1;
				fiFormState.SetValue(this, state);
				this.OnClientSizeChanged(EventArgs.Empty);
				state[bi1] = 0;
				fiFormState.SetValue(this, state);
			}
			else
			{
				base.SetClientSizeCore(x, y);
			}
		}