Change Form Title Bar Color [modified]
-
Hello. I am using VB 2010 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 ?
modified on Monday, July 18, 2011 7:27 AM
Only if you draw the ENTIRE form yourself. What you're doing is drawing whats called the "non-client" area. This means you'll have to override the WndProc method and handle, at a minimum, the WM_NCPAINT message. This tells your code to paint its non-client area. The form properties won't do you much good here are they only specify the client area dimensions and settings. Docs on the WM_NCPAINT message[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Only if you draw the ENTIRE form yourself. What you're doing is drawing whats called the "non-client" area. This means you'll have to override the WndProc method and handle, at a minimum, the WM_NCPAINT message. This tells your code to paint its non-client area. The form properties won't do you much good here are they only specify the client area dimensions and settings. Docs on the WM_NCPAINT message[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Sure. Most will allow you to change the form borders. How you do that depends on the library you chose.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak