Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Change Form Title Bar Color [modified]

Change Form Title Bar Color [modified]

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ivo75
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • I ivo75

      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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      I 1 Reply Last reply
      0
      • D 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

        I Offline
        I Offline
        ivo75
        wrote on last edited by
        #3

        Can I use skins and how

        D 1 Reply Last reply
        0
        • I ivo75

          Can I use skins and how

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups