CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    4

    how to black a caption bar?

    how can I change the BackColor of a caption bar to Black and ForeColor to White?

  2. #2
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: how to black a caption bar?

    Quote Originally Posted by jrahma
    how can I change the BackColor of a caption bar to Black and ForeColor to White?
    You want to change this permanently so it cannot be changed by choosing the system colors ?
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  3. #3
    Join Date
    Oct 2008
    Posts
    4

    Re: how to black a caption bar?

    i want to permanently change the caption bar but for my application only not for the whole windows.

  4. #4
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: how to black a caption bar?

    Quote Originally Posted by jrahma
    i want to permanently change the caption bar but for my application only not for the whole windows.
    There is no such Property for the caption bar, but there is some way to have forms in any way you want
    Just google for 'Form Skinning' or similar.
    For example here is an article I found about how to do it in old VB6,0
    http://www.vbaccelerator.com/home/VB...ns/article.asp
    As it uses API's it shouldn't be too complicated to transform the priniples you find there to your own form.

    A very easy way is done in my example about how to create Dockable Forms Part #1( Link in the borttom of this post ) I'm using an ownerdrawn form and painting the nonclient area myself.
    Last edited by JonnyPoet; October 25th, 2008 at 05:23 PM.
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured