Buttons appear different in Design time vs Run time (So does toolbar)

E

Ed.

Hello Everyone,
I've tried looking this up but can't find any info. I have standard
buttons on my vb.net (2008) form which look nicely drawn, with round
corners, nice modern style. When I then try to run my application the
buttons appear with sharp corners, older style. I've tried chaning button
properties also but that doesn't help.

The toolbar and menu bar at the top of the screen also goes from nice blue
XP colour to plain grey when I run it.

This is all happening on the same PC, running WinXP.

I've used vb6 for years, but am new to .net so it's possible I am making
some mistakes. I tried setting to .net framework 3.5 but that has not
helped.

Does anyone know why this may be happening?

Thanks & all the best,
- Ed.
 
A

Armin Zingler

Ed. said:
Hello Everyone,
I've tried looking this up but can't find any info. I have standard
buttons on my vb.net (2008) form which look nicely drawn, with round
corners, nice modern style. When I then try to run my application the
buttons appear with sharp corners, older style. I've tried chaning button
properties also but that doesn't help.

The toolbar and menu bar at the top of the screen also goes from nice blue
XP colour to plain grey when I run it.

This is all happening on the same PC, running WinXP.

I've used vb6 for years, but am new to .net so it's possible I am making
some mistakes. I tried setting to .net framework 3.5 but that has not
helped.

Does anyone know why this may be happening?

Thanks & all the best,
- Ed.

Put this at the start of your Sub Main:

application.enablevisualstyles

Or, if you make use of the "Application Framework", enable the option in
the project's properties.

You may also consider putting

application.setcompatibletextrenderingdefault(false)

there. (see F1 for more about it)
 
E

Ed.

Thankyou - that's perfect.

Armin Zingler said:
Put this at the start of your Sub Main:

application.enablevisualstyles

Or, if you make use of the "Application Framework", enable the option in
the project's properties.

You may also consider putting

application.setcompatibletextrenderingdefault(false)

there. (see F1 for more about it)
 

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