Question Issue with Textbox Border color between Win7 and Xp

visegrad

New member
Joined
Dec 4, 2014
Messages
2
Programming Experience
5-10
I am currently developing in VS 2008 on a Win7 64 machine. I recently changed my GUI around to give it a more modern look. On my development machine everything looks great. I was asked to put my application on an Xp machine and it caused issues with the textbox border colors. In Win 7 the border is a thin white/grey line, but on Xp its a thicker black line.

Textbox parameters that I changed are:
BorderStyle: Fixed Single
ForeColor: White
BackColor: 64, 64, 64

All of the other components were changed similarly and are ok. Only the Textboxes have a black border. This seems like such a basic thing, but I am pulling my hair out. I tried preventing the xp themes, but that didn't work.

Any help would be much appreciated.
Thanks.
 
Fixed single is always a 1 pixel black border here, no matter what OS, so I am not sure where your thin grey line comes from. If you want a grey border set your border style to fixed 3D.
 
Its a Greyish color, see image. TextBoxImage.jpg
 

Latest posts

Back
Top