473,320 Members | 1,990 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,320 software developers and data experts.

Modern looking buttons? (not tool bar buttons)

I don't know why I never noticed this before... but in VS 2003, when i
drag a button (or combobox, etc) onto the form, it defaults to a hard
chisseled rectangle.

But in just about all the programs I use (except maybe some very old
ones) the buttons are much slicker looking: rounded, with a slight
border around which responds to a rollover.

I'm tinkering with VB 2005 Express Edition, and by default the buttons
are really modern, like I explained above. Same thing with the
combobox and other common controls.

Is VS 2003 not able to do this without alot of effort, or buying a 3rd
party solution?

Thanks!
John

Dec 1 '05 #1
6 1952
"johnb41" <js********@gmail.com> schrieb:
But in just about all the programs I use (except maybe some very old
ones) the buttons are much slicker looking: rounded, with a slight
border around which responds to a rollover.

I'm tinkering with VB 2005 Express Edition, and by default the buttons
are really modern, like I explained above. Same thing with the
combobox and other common controls.


Enabling Windows XP Visual Styles for Windows Forms applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=xpvisualstyles&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 1 '05 #2
Thanks, but this isn't working for me.

Where do I put the code:

Application.EnableVisualStyles()
Application.DoEvents()

I tried it in the load event of the first form that shows up. I also
put it in a module that has many other popular functions in it:

Module SubsAndFunctions
Sub main()
Application.EnableVisualStyles()
Application.DoEvents() ' Bug fix.
End Sub

' other functions go here...

End Module
I also set the flatstyle of a button to "system".

The button still appears old-fashioned.

Any idea what I'm doing wrong?
Thanks,
John

Dec 1 '05 #3
If you don't have your desktop running windows xp, and using windows xp
style itself, it will override your buttons. Ie. if you have changed the
them to windows classic.
"johnb41" <js********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Thanks, but this isn't working for me.

Where do I put the code:

Application.EnableVisualStyles()
Application.DoEvents()

I tried it in the load event of the first form that shows up. I also
put it in a module that has many other popular functions in it:

Module SubsAndFunctions
Sub main()
Application.EnableVisualStyles()
Application.DoEvents() ' Bug fix.
End Sub

' other functions go here...

End Module
I also set the flatstyle of a button to "system".

The button still appears old-fashioned.

Any idea what I'm doing wrong?
Thanks,
John

Dec 1 '05 #4
"johnb41" <js********@gmail.com> schrieb:
I tried it in the load event of the first form that shows up. I also
put it in a module that has many other popular functions in it:

Module SubsAndFunctions
Sub main()
Application.EnableVisualStyles()
Application.DoEvents() ' Bug fix.
\\\
Application.Run(New MainForm())
///
End Sub


In the project properties, select 'Sub Main' as startup object.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 1 '05 #5
I should read replys more carefully! I didn't see the
"Application.Run" part, so this wasn't working.

But all is well. It works! Thanks so very much!!! :)

John

Dec 1 '05 #6
Hmmm... The main startup form has the nice new look, but all my other
forms do not. I thought what I did would make a global change to my
entire app.

How can I get all my other forms on the app to get the same look?

Thanks,
John

Dec 1 '05 #7

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

Similar topics

4
by: Frank Einstein | last post by:
Looking for a tool that can edit an XML file in a browser. The basic requirement is that the XML file is rendered as an HTML form with editable fields (including add/delete, preferably in...
14
by: Akseli Mäki | last post by:
Hi, Hopefully this is not too much offtopic. I'm working on a FAQ. I want to make two versions of it, plain text and HTML. I'm looking for a tool that will make a plain text doc out of the...
1
by: VM | last post by:
Does Studio Dot Net include any optimizations that make it the appropriate tool for Pentium 4 processors? I'm writing a paper on compiler optimizations for modern hardware. Since I chose .Net...
0
by: JJay | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
0
by: jaxCtiDev | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
11
by: BobAchgill | last post by:
The needed capability: I guess there are two possibilities for making "hot spots" on a Windows Form: The Scenario: I have a world map as the form background. I need clickable hotspots over...
2
by: Ken Kazinski | last post by:
How do you set the tool tip property on a button. This was easy in VB6. Here is the code I am trying to use. Dim toolTip1 As New ToolTip() ' Set up the delays for the ToolTip....
1
by: pduncan | last post by:
I'm putting custom tooltips on my buttons and am getting a flicker effect with buttons in Internet explorer (not firefox) When you mouse over a button in internet explorer, the outline of the...
1
by: jimenezkrause | last post by:
Hello, I administrate a large number of Oracle databases for my company. Some DBs are easily structured and the staff responsible for keeping them updated are able to use an Oracle client...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.