Click to See Complete Forum and Search --> : how to black a caption bar?


jrahma
October 25th, 2008, 03:34 PM
how can I change the BackColor of a caption bar to Black and ForeColor to White?

JonnyPoet
October 25th, 2008, 03:43 PM
how can I change the BackColor of a caption bar to Black and ForeColor to White?You want to change this permanently so it cannot be changed by choosing the system colors ?

jrahma
October 25th, 2008, 03:46 PM
i want to permanently change the caption bar but for my application only not for the whole windows.

JonnyPoet
October 25th, 2008, 05:14 PM
i want to permanently change the caption bar but for my application only not for the whole windows.There is no such Property for the caption bar, but there is some way to have forms in any way you want
Just google for 'Form Skinning' or similar.
For example here is an article I found about how to do it in old VB6,0
http://www.vbaccelerator.com/home/VB/Code/Controls/Skins/article.asp
As it uses API's it shouldn't be too complicated to transform the priniples you find there to your own form.

A very easy way is done in my example about how to create Dockable Forms Part #1( Link in the borttom of this post ) I'm using an ownerdrawn form and painting the nonclient area myself.