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. C#
  4. A transparent label?

A transparent label?

Scheduled Pinned Locked Moved C#
csharpquestionlearning
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.
  • D Offline
    D Offline
    drc_no1
    wrote on last edited by
    #1

    Well, i'm quite new to C#, but i wanna learn. So, i've decided to make a program, but i have some dificulties in finding a label that can be set to transparent(only the label, through a transparency key). The idea is that i have a large picture in the form and that i want to put some labels(or buttons or anything else which has some writing in front and the option to click on it... and, of course can be set to transparent) on the picture so that when you click it, it shows a messagebox.:confused: :~ The basic idea is that i need an object that can stay on top of a picture and be transparent. p.s.: the idea with cutting the the picture in small sizes which can be set as background won't work because there are many labels... :sigh: thank u!:-D

    J 1 Reply Last reply
    0
    • D drc_no1

      Well, i'm quite new to C#, but i wanna learn. So, i've decided to make a program, but i have some dificulties in finding a label that can be set to transparent(only the label, through a transparency key). The idea is that i have a large picture in the form and that i want to put some labels(or buttons or anything else which has some writing in front and the option to click on it... and, of course can be set to transparent) on the picture so that when you click it, it shows a messagebox.:confused: :~ The basic idea is that i need an object that can stay on top of a picture and be transparent. p.s.: the idea with cutting the the picture in small sizes which can be set as background won't work because there are many labels... :sigh: thank u!:-D

      J Offline
      J Offline
      James Gupta
      wrote on last edited by
      #2

      Only forms can have an opacity key but you can set the label to get its color from an ARGB (Alpha Red Green Blue) value.

      D 1 Reply Last reply
      0
      • J James Gupta

        Only forms can have an opacity key but you can set the label to get its color from an ARGB (Alpha Red Green Blue) value.

        D Offline
        D Offline
        drc_no1
        wrote on last edited by
        #3

        Thanks... I've found an overriden control that does that. And i think it's what i was looking for... Thanks, anyway -> the project name si simple line... :-D

        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