473,888 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?

Nov 22 '05 #1
3 6390
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


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


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).


Happy Coding

"Mike" <si***@newsgrou ps.nospam> wrote in message
news:18******** *************** ***********@mic rosoft.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?


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

Eric Cadwell
Nov 22 '05 #4

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

Similar topics

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 user/password info is in differnet databases, how can I call different validation scripts based on this input ? THANK YOU! See below please. Somethinglike this:
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 your help
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.
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> <script type="text/javascript"> function ig_onchange()
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 a single variable. I think this is possible, however I don't know Visual Basic very well. I created a module named DBcommon with the following statements in it: Option Compare Database Global Const DBname As String = "Title String"
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 make a change in the name field in the details, then refresh the list box with new name? Please help and thanks!
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 the forms with a relevant name, i know this is also the class name ,not only the title which i know can be changed using the text paramter, but i want to set custom form names at design time.
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 containing a Edit(textbox) and button to test at first. When I change text in Edit or press button to setText value, I want to monitor the change event. But the event code always return 0, why?
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" that appears after my application name on the title bar and if possible, get rid of the IE logo at the start of the address bar.
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.