473,394 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Title Bar/Caption Bar Color

Is there a way to change the default color of a windows
form title bar/caption bar from within an application
(without changing the user's preferences)?
I do know how to remove the title bar along with a lot of
other functionalities. It would be helpful to get away
from this bright blue color that restricts all color
schemes.
I have tried:
the systemcolors class
ActiveCaption (a read-only property)

I would be grateful for any help,
Thanks, Ursula
Jul 21 '05 #1
1 1896
Not without intercepting NC_* (non-client) messages and drawing the caption
bar yourself. Intercepting the messages is easy - all you need to do is
override DefWindowProc on the form. The problem is the drawing.

There are many samples of how to do this from C++ and VB. I'd probably start
by looking at those and trying to port them.
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

"Ursula" <an*******@discussions.microsoft.com> wrote in message
news:0c****************************@phx.gbl...
Is there a way to change the default color of a windows
form title bar/caption bar from within an application
(without changing the user's preferences)?
I do know how to remove the title bar along with a lot of
other functionalities. It would be helpful to get away
from this bright blue color that restricts all color
schemes.
I have tried:
the systemcolors class
ActiveCaption (a read-only property)

I would be grateful for any help,
Thanks, Ursula

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: bissatch | last post by:
Hi, I fully understand the purpose of an alt attribute within a <img> tag but why would you use a title or summary attribute within, for example, a <p> tag. I have read books recommending that I...
3
by: Ken | last post by:
Hi. I've defined a custom database property called Version. It is a text value. I wanted to know if there is a way to include that value on the title bar of a form window. Also, is there a...
4
by: DerekM | last post by:
I have a database project that I created with several forms and reports. I would like to be able to declare a single title and be able to change the title on all the forms and reports by changing...
2
by: Trammel | last post by:
Hi. I have been trying to make a simple application that will sit in the background and alert me of any changes in window focus (IE: Pop-up windows) on my system. I have used...
1
by: Ursula | last post by:
Is there a way to change the default color of a windows form title bar/caption bar from within an application (without changing the user's preferences)? I do know how to remove the title bar along...
1
by: mplus_2000 | last post by:
I have recently inherited a database. The switchboard (and other forms) displays the name of the database on it (top, center). Currently the name that appears is Reviews. There are plans to roll...
2
by: eljainc | last post by:
Hello, I would like my program to display the caption on the form (top of form on title bar) in a different font. I would ideally like to have one part of the form caption in one font, and...
3
by: mattcolenutt | last post by:
Hi, hope anyone can help. Request: How do I hide the captions tile on a form. Example: Access Database Tile : Desired Result: Access Database Tile (only)
5
by: cssExp | last post by:
Is it possible to change/specify caption/title of the javascript alert box? alert('This Field is required'); to have the caption as Info instead of web page url.
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.