Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ToolStrip1.ImageScalingSize
Message
From
08/03/2006 12:29:19
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01102486
Message ID:
01102509
Views:
19
Forget my last reply. It doesn't work.

It looks like there are other properties to mess around with. In particular, the individual items in the ToolStrip (the buttons) have an ImageScaling property, which default to "SizeToFit" ... fit the ToolStrip size I imagine. So, it looks like there are a few more properties to mess with ... have fun. <g>

~~Bonnie



>This should be very easy but I have spent about 15 minutes on it and I can't figure it out. Consider the code below:
>
>this.toolStrip1.ImageScalingSize = new Size(32, 32);
>
>
>I am changing the ImageScalingSize from it's default value (16,16) at runtime. How do I get the toolStrip to redraw itself (and change the the image size for those with bad eyes)? I have tried the following:
>
>this.toolStrip1.ImageScalingSize = new Size(32, 32);
>//this.toolStrip1.Invalidate(); //didn't work
>//this.toolStrip1.Invalidate(true); //didn't work
>//this.toolStrip1.Refresh(); //didn't work
>//this.Invalidate(); //didn't work
>//this.Invalidate(true); //didn't work
>//this.Refresh(); //didn't work
>
>
>What do I have to do to get that darn thing to redraw itself?
>
>Einar
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform