473,378 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Setting toolbar button style

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
Nov 20 '05 #1
5 2185
Hi,

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

Ken
-------------------
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:eb*************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #2
Hi,

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

Ken
-------------------
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:eb*************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #3
* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Hi Ken,

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

Thanks again,

Bernie

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Os*************@TK2MSFTNGP09.phx.gbl...
Hi,

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

Ken
-------------------
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:eb*************@TK2MSFTNGP11.phx.gbl...
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


Nov 20 '05 #5
Thanks Herfried,

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

Bernie

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
* "Bernie Yaeger" <be*****@cherwellinc.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James Tran | last post by:
I created a toolbar, set the style of my button to be a dropdownbutton, and type in the button name in the text field. After I do this, what happens is that the dropdownbutton automatically...
2
by: Kubuli John | last post by:
I have a LinkButton in an ASP.NET web form. Depending on the current state of affairs, I either enable or disable the link button in by code-behind class (e.g., disable the "Previous" button if...
3
by: Mark Goldin | last post by:
Is it possible to get a toolbar button that has been clicked on a client side? I'd like to add some JavaScript to it. Thanks
0
by: Bernie Yaeger | last post by:
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...
1
by: Curtis | last post by:
Somehow I'm just missing something. I don't know how to catch when a user clicks on an item in a dropdown list for a dropdown style button on a toolbar. I create a new app. Form1. Add a...
6
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for...
0
by: harishdixit1 | last post by:
Hello friends I m creating an ATL DLL which will attached a toolbar in IE. I implemented XP style & it is working fine means controls now have XP Style. On my toolbar i have Button menus. But...
0
by: vrata48 | last post by:
Hi, i have user control which i display on windows toolbar (http:// www.codeproject.com/csharp/dotnetbandobjects.asp) and i want to place a button on it. Problem is, that this button does not look...
3
by: JFKJr | last post by:
Hello everyone, the following is the code which opens an excel file and creates a toolbar button. And, when I click the toolbar button as shown at line #28, the code should call the "Example"...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.