0
Answer

Resizing toolStrip Buttons

Ask a question
Andrew

Andrew

16y
2.8k
1
I have a few toolstrips that have a number of different buttons each. I want the user to be able to resize the buttons to Small, Medium or Large sizes. The problem is that when I resize the toolbars they do not redraw or refresh until I do some sort of manual resizing of the form, ether expanding/shrinking or minimizing/maximizing the window.

I've tried using both functions below:

tStrip.ImageScalingSize = 24;

tStrip.Scale(new SizeF(24, 24));

Followed by combinations of the following functions:

tStrip.Refresh();
tStrip.Update();
this.Refresh();
this.Update();

Nothing I try seems to actually work.