Home All Groups Group Topic Archive Search About
Author
2 Feb 2006 6:08 AM
bartj
Hello,

Am using VB5 under XP pro. I notice that the forms border colors are
controled by the selected windows "color scheme". Is there any way to
change this programatically from inside VB to say black?

Thanks,
Bart j

Author
2 Feb 2006 9:29 AM
Mike D Sutton
> Am using VB5 under XP pro. I notice that the forms border colors are
> controled by the selected windows "color scheme". Is there any way to
> change this programatically from inside VB to say black?

You would have to subclass the form, catch the non-client paint messages and perform your own drawing to the window
there.  Alternatively disable borders on your form and paint what would be the non-client area of your form manually,
neither of which are a particularly easy task so unless it's a real problem IMO it's not worth the hassle.
Hope this helps,

    Mike


- Microsoft Visual Basic MVP -
E-Mail: ED***@mvps.org
WWW: Http://EDais.mvps.org/