Toolbar buttons not behaving...

  • Thread starter Thread starter Rick Strahl [MVP]
  • Start date Start date
R

Rick Strahl [MVP]

Hi I have a form that has a toolbar on it and for some reason or another the
toolbar will show buttons that are too small.

At designtime all looks fine but when I run the buttons crunch up. This only
happens when EnableVisualStyles is true - in classic windows mode the
buttons look fine.

I set the button size on the toolbar, but when I look in the actual toolbar
button section I see that the Rectangle size of the button is set much
smaller. Unfortunately the values there are read only...

How can I make this work?

++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
 
* "Rick Strahl said:
Hi I have a form that has a toolbar on it and for some reason or another the
toolbar will show buttons that are too small.

At designtime all looks fine but when I run the buttons crunch up. This only
happens when EnableVisualStyles is true - in classic windows mode the
buttons look fine.

Call 'Application.DoEvents' directly after calling
'Application.EnableVisualStyles'.
 
Back
Top