Setting toolbar button style

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
 
K

Ken Tucker [MVP]

Hi,

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

Ken
 
H

Herfried K. Wagner [MVP]

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

Bernie Yaeger

Hi Ken,

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

Thanks again,

Bernie
 
B

Bernie Yaeger

Thanks Herfried,

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

Bernie
 

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