Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ToolStrip1.ImageScalingSize
Message
De
08/03/2006 12:29:19
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01102486
Message ID:
01102509
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform