Andrew

Andrew

  • NA
  • 2
  • 0

Resizing toolStrip Buttons

Dec 19 2007 8:19 AM
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.