Toolbar buttons not behaving...

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
 
H

Herfried K. Wagner [MVP]

* "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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top