Setting toolbar button style

  • Thread starter Thread starter Bernie Yaeger
  • Start date Start date
B

Bernie Yaeger

I use application.enablevisualstyles() and develop using visual studio 1.1.
I know that changing flatstyle for certain controls will give me xp styles
on those controls. However, I don't know how to get the xp look and feel
for toolbar buttons. Mine highlight as I pass over them, but they are not
3d and do not change shades, as do for example the buttons on the toolbar of
outlook express. How can I do this?

Thanks for any help.

Bernie Yaeger
 
Hi,

I think this is what you are looking for.
ToolBar1.Appearance = ToolBarAppearance.Flat

Ken
 
* "Bernie Yaeger said:
I use application.enablevisualstyles() and develop using visual studio 1.1.
I know that changing flatstyle for certain controls will give me xp styles
on those controls. However, I don't know how to get the xp look and feel
for toolbar buttons. Mine highlight as I pass over them, but they are not
3d and do not change shades, as do for example the buttons on the toolbar of
outlook express. How can I do this?

As Ken said, play around with the control's 'Appearance' property. In
addition, call 'Application.DoEvents' directly after calling
'Application.EnableVisualStyles' in order to fix a bug which causes
toolbar icons to disappear.
 
Hi Ken,

Tx - what I really wanted you gave me direction to: toolbar1.appearance =
toolbarappearance.normal; flat is evidently the default.

Thanks again,

Bernie
 
Thanks Herfried,

As always, you put me in the right direction - and, yes, I do avoid the bug
with application doevents. Tx again.

Bernie
 
Back
Top