System.Windows.Forms.Control.ScaleControl(System.Drawing.SizeF, System.Windows.Forms.BoundsSpecified)

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

6 Examples 7

1. Example

Project: TQVaultAE
Source File: ScalingCheckBox.cs
View license
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
		{
			this.Font = new Font(this.Font.Name, this.Font.SizeInPoints * factor.Height, this.Font.Style);

			base.ScaleControl(factor, specified);
		}

2. Example

Project: TQVaultAE
Source File: ScalingLabel.cs
View license
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
		{
			this.Font = new Font(this.Font.Name, this.Font.SizeInPoints * factor.Height, this.Font.Style);

			base.ScaleControl(factor, specified);
		}

3. Example

Project: TQVaultAE
Source File: ScalingRadioButton.cs
View license
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
		{
			this.Font = new Font(this.Font.Name, this.Font.SizeInPoints * factor.Height, this.Font.Style);

			base.ScaleControl(factor, specified);
		}

4. Example

Project: TQVaultAE
Source File: ScalingTextBox.cs
View license
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
		{
			this.Font = new Font(this.Font.Name, this.Font.SizeInPoints * factor.Height, this.Font.Style);

			base.ScaleControl(factor, specified);
		}

5. Example

Project: TQVaultAE
Source File: ScalingButton.cs
View license
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
		{
			// Get a reference for scaling.
			if (this.baseFont == null)
			{
				this.baseFont = this.Font;
			}

			// We changed the font so reset the base font.
			if (this.baseFont.Name != this.Font.Name)
			{
				this.baseFont = this.Font;
			}

			this.baseFont = new Font(this.baseFont.Name, this.baseFont.SizeInPoints * factor.Height, this.baseFont.Style);
			this.Font = this.GetScaledButtonTextFont(this.baseFont, Convert.ToInt32((float)this.Width * factor.Width));

			// Reset the image to the original size.  Assume that we are resizing and that this button is not under the mouse.
			if (this.Image != null)
			{
				this.Image = this.UpBitmap;
			}

			base.ScaleControl(factor, specified);
		}

6. Example

Project: Be.HexEditor
Source File: HexBox.cs
View license
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
        {
            base.ScaleControl(factor, specified);

            this.BeginInvoke(new MethodInvoker(() =>
                {
                    this.UpdateRectanglePositioning();
                    if (_caretVisible)
                    {
                        DestroyCaret();
                        CreateCaret();
                    }
                    this.Invalidate();
                }));
        }