Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How does image scaling work with ToolStrips?

Image scaling is determined by the interaction of several properties.

size ToolStrip.ImageScalingSize

This is a the size that will be used to scale into as determined by the Item's ImageScaling and the container's AutoSize setting

ToolStripItemImageScaling ToolStripItem.ImageScaling

This controls whether the image associated with this item is scaled into the size prescribed (either by the ToolStrip.ImageScalingSize or as determined by AutoSize).

ToolStrip AutoSize

ToolStripItem.ImageScalingMode

SizeToFit

None

TRUE

Scales to ToolStrip.ImageScalingSize

No Image Scaling
ToolStrip sizes to largest of largest item or minimum size

FALSE

Scales to area remaining in ToolStrip

No Image Scaling
No ToolStrip Sizing



Page view counter