Color of the title bar

  • Thread starter Gilbert Tordeur
  • Start date
G

Gilbert Tordeur

Hello.

I am using VB 2008 under Windows XP to create a MDI Windows Form
application. Question : is it possible to change the color or the title bar
and of the border of the children forms, form by form ?

Gilbert
 
P

Phill W.

Gilbert said:
Question : is it possible to change the color or the title bar
and of the border of the children forms, form by form ?

Short answer - No.

You /might/ be able to do this, but only if:

(a) you want to take charge of drawing the /whole/ window yourself
(which may involve going down to the Windows Message Level; I can't
remember if you can [easily] render the non-client Area of the Form),
and, more importantly,

(b) you want to really annoy that mega-important user who's specifically
picked that hideous shade of orange for the title bars of Forms on
/their/ *P*ersonal *C*omputer.

OK, granted; there are a few, very specific cases where you /might/ have
a Good Reason for doing this; personally, I've never yet had to do so.

Regards,
Phill W.
 
R

rowe_newsgroups

G

Gilbert Tordeur

Phil, Seth,

Thank you. I understand it is no so easy as to change a parameter somewhere.
I intend to make a visible difference when I run a program in test mode or
in production mode. I'll find another way.

Have a good day,
Gilbert
 
P

Phill W.

Gilbert said:
I intend to make a visible difference when I run a program in test mode or
in production mode. I'll find another way.

Ah; now that's precisely the sort of thing that ...

#If DEBUG Then
Me.BackColor = Color.Green
#End If

.... is for.

Of course, you /do/ have to remember to build your finished product
using the Release Configuration before you ship it ... ;-)

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top