Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ToolStrip1.ImageScalingSize
Message
De
08/03/2006 12:14:18
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01102486
Message ID:
01102498
Vues:
13
Einar,

Just a guess, since I haven't tried to do this, but *where* are you changing the size? That might have something to do with why it's not refreshing. I'd try it in the constructor (after the InitializeComponent runs).

~~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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform