System.Windows.Forms.Control.UpdateBounds(int, int, int, int, int, int)

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

2 Examples 7

1. Example

Project: Unity-WinForms
Source File: Control.cs
View license
protected void UpdateBounds(int argX, int argY, int argWidth, int argHeight)
        {
            int cWidth = argWidth;
            int cHeight = argHeight;
            UpdateBounds(argX, argY, argWidth, argHeight, cWidth, cHeight);
        }

2. Example

Project: Sardauscan
Source File: CustomAppForm.cs
View license
protected override void SetClientSizeCore(int x, int y)
		{
			if (!EnableNonClientAreaPaint)
				base.SetClientSizeCore(x, y);

			this.Size = SizeFromClientSize(x, y, true);

			//  this.clientWidth = x;
			//  this.clientHeight = y;
			//  this.OnClientSizeChanged(EventArgs.Empty);
			// do this instead of above.
			this.UpdateBounds(Location.X, Location.Y, Size.Width, Size.Height, x, y);
		}