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

  • Thread starter Thread starter Ed.
  • Start date Start date
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.
 
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)
 
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)
 
Back
Top