Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ToolStrip1.ImageScalingSize
Message
 
À
08/03/2006 14:16:26
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01102486
Message ID:
01102584
Vues:
19
Yes I did. I haven't been working on it since I originally posted my question. I've got a feeling it will keep me up late tonight though :)
Einar
>Did you see my other reply? Figure anything out yet?
>
>~~Bonnie
>
>>I understand what you are saying but what I acctually want to do is to change the toolstrip image size from the mainmenu by clicking View->Show large icons. I have seen this feature in other M$ apps (SQL management studio has a feature similar to this).
>>If I change the ImageScalingSize at design time it works just fine (after I rebuild).
>>Einar
>>
>>>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
Semper ubi sub ubi.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform