473,320 Members | 1,845 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,320 software developers and data experts.

How do I change the color of the title bar in a Win Forms .Net app

How do I change the background color of the title bar in a Win Forms .Net app
without changing the color settings for all windows in the OS?

Thanks.
Nov 22 '05 #1
3 6291
The easy answer is that you can't. The hard answer is that you *might* be
able to override the paint event or dig into the WinAPIs and do it that way.
There are some great articles for custom forms and such on The Code Project
(http://www.codeproject.com).

HTH,
~d

"Mike" <si***@newsgroups.nospam> wrote in message
news:18**********************************@microsof t.com...
How do I change the background color of the title bar in a Win Forms .Net
app
without changing the color settings for all windows in the OS?

Thanks.

Nov 22 '05 #2
Hi Mike,

I beliveve this "might" not be possible (Unless someone has a real clever
hack for this.)

As a work around what you can do is remove the title bar and add a custom
control manually in place of the title bar. But you need to handle the
events like resize of the window on double click, move the window when
dragged by the title bar, etc..

Maybe,.. Maybe you can make a Win32 API and set it. ( My Guess).

HTH,

Happy Coding

"Mike" <si***@newsgroups.nospam> wrote in message
news:18**********************************@microsof t.com...
How do I change the background color of the title bar in a Win Forms .Net app without changing the color settings for all windows in the OS?

Thanks.

Nov 22 '05 #3
It's more trouble than it's worth.

HTH;
Eric Cadwell
http://www.origincontrols.com
Nov 22 '05 #4

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

Similar topics

2
by: Sylvie Stone | last post by:
Hi group - I have an html form for that uses username and password to login to a specific area of the website. The "area" the user wants to go to is based on a pull down menu. Becasue the...
12
by: Frank Lehmann | last post by:
Hi newsgroup, could someone please tell how to change the title of a Web Form window through VB.NET code? In VB 6 I would write Me.Caption="title", and what is it in VB.NET?? Thanks for...
3
by: Mike | last post by:
How do I change the background color of the title bar in a Win Forms .Net app without changing the color settings for all windows in the OS? Thanks.
3
by: Matt | last post by:
I want to change the label on the fly (when the user click the checkbox), but my attempt InputForm.lataLbl.value = "LATA * "; didn't work. Here's my code, any ideas? thanks !!! <html>...
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...
4
by: N. Graves | last post by:
Hello... thank you for your time. I have a form that has a List box of equipotent records and a sub form that will show the data of the equipment select from the list box. Is it possible to...
0
by: Petded | last post by:
Hi im just starting to look at doing some visual c++ winforms stuff using the latest vc++ express edition download im generally familiar with c++. When i generate a winforms i want to name...
0
by: zeng.hui.stephen | last post by:
I download the demo http://msdn.microsoft.com/msdnmag/issues/02/10/cuttingedge/. I inherite the demo, and write my code. I want to use Hook to monitor C++ Edit change. I use a C# form...
7
by: imad.sabonji | last post by:
HI I am using Visual Studio.Net 2003 and using C# I would like to know how is it possible to change the Internet explorer window title? ie. i want to get rid of "Microsot Internet Explorer"...
6
by: Arthur | last post by:
Hello. How might it be possible to change where a form action is directed based on a selected option. For example I have this: <FORM METHOD = "post" ACTION = ""> And a drop down such as
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.