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. transparent label over textbox

transparent label over textbox

Scheduled Pinned Locked Moved C#
question
2 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.
  • M Offline
    M Offline
    melanieab
    wrote on last edited by
    #1

    Hi, I'd like to put a transparent label over a textbox. I set the label backcolor to transparent and set its parent as the textbox. But setting the textbox as the parent results in the label not coming up at all (I changed the backcolor to red so I could see if it was there). Anyone know what to do? Thanks!!! Mel

    D 1 Reply Last reply
    0
    • M melanieab

      Hi, I'd like to put a transparent label over a textbox. I set the label backcolor to transparent and set its parent as the textbox. But setting the textbox as the parent results in the label not coming up at all (I changed the backcolor to red so I could see if it was there). Anyone know what to do? Thanks!!! Mel

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

      Why did you set the textbox as the labels parent? There's no need to do this. All you have to do is call the labels BringToFront method to get it sit on top of other controls. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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