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. Group box and background image

Group box and background image

Scheduled Pinned Locked Moved Visual Basic
questioncom
3 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.
  • T Offline
    T Offline
    Tom Wright
    wrote on last edited by
    #1

    I have a panel on my form that is docked with a gradient image on it. I then have a group box on top of that with some objects in it. How can I get it so that the image on the panel object shows thru the group box....or at least get the image to form all the way around the group box. It seems like where the text is for the group box, it still shows the system colors. Any suggestions? Thanks

    Tom Wright tawright915@gmail.com

    T 1 Reply Last reply
    0
    • T Tom Wright

      I have a panel on my form that is docked with a gradient image on it. I then have a group box on top of that with some objects in it. How can I get it so that the image on the panel object shows thru the group box....or at least get the image to form all the way around the group box. It seems like where the text is for the group box, it still shows the system colors. Any suggestions? Thanks

      Tom Wright tawright915@gmail.com

      T Offline
      T Offline
      The Man from U N C L E
      wrote on last edited by
      #2

      Unfortunatly the 'Transparent' backcolor setting for controls just gives you the same single backcolor as the Form the control is on. So normally you would not get gradient Image to show at all. However, you could override the Groupbox paint events and work out which bits of the image need to be painted under it, and paint them manually. If the Group box is in a fixed position I would suggest just pasting the appropriate bit of the gradient image into the group box background image.

      If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850)

      T 1 Reply Last reply
      0
      • T The Man from U N C L E

        Unfortunatly the 'Transparent' backcolor setting for controls just gives you the same single backcolor as the Form the control is on. So normally you would not get gradient Image to show at all. However, you could override the Groupbox paint events and work out which bits of the image need to be painted under it, and paint them manually. If the Group box is in a fixed position I would suggest just pasting the appropriate bit of the gradient image into the group box background image.

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850)

        T Offline
        T Offline
        Tom Wright
        wrote on last edited by
        #3

        You know for half a day it did not click with me what you said.....until now. So I set the background image property of my main form and ala peanut butter and jelly sandwiches.....the group box was filled in exactly like I wanted it too. Thanks for the help

        Tom Wright tawright915@gmail.com

        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