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. .NET (Core and Framework)
  4. Transparency in Txxtbox

Transparency in Txxtbox

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
6 Posts 3 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.
  • S Offline
    S Offline
    sianatia
    wrote on last edited by
    #1

    Hi, when we set the backcolor of a panel to Transparent,it works but when we hover or put the panle on a TextBox the backcolor shows as Control BackColor and no more transparency is supported. How can we enable the trasparency of the textbox? thanks

    D P 2 Replies Last reply
    0
    • S sianatia

      Hi, when we set the backcolor of a panel to Transparent,it works but when we hover or put the panle on a TextBox the backcolor shows as Control BackColor and no more transparency is supported. How can we enable the trasparency of the textbox? thanks

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

      Transparent isn't transparent. Setting the BackColor of a control to Transparent tells it to take on the background properties of its parent container. Controls sitting behind your Panel will NOT show through the panel.

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      S 1 Reply Last reply
      0
      • S sianatia

        Hi, when we set the backcolor of a panel to Transparent,it works but when we hover or put the panle on a TextBox the backcolor shows as Control BackColor and no more transparency is supported. How can we enable the trasparency of the textbox? thanks

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Not sure what you mean. What are you trying to achieve? Maybe you want to send the Panel to the back? Or bring the TextBox to the front?

        S 1 Reply Last reply
        0
        • P PIEBALDconsult

          Not sure what you mean. What are you trying to achieve? Maybe you want to send the Panel to the back? Or bring the TextBox to the front?

          S Offline
          S Offline
          sianatia
          wrote on last edited by
          #4

          well,i have a textbox and i want to show something over it ,using label didn't solve my problem because when i put the label on the textbox,it covers textbox,although i have set the transparency of the label.I tried to use panel but it didn't work the same way. Thanks

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            Transparent isn't transparent. Setting the BackColor of a control to Transparent tells it to take on the background properties of its parent container. Controls sitting behind your Panel will NOT show through the panel.

            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            S Offline
            S Offline
            sianatia
            wrote on last edited by
            #5

            Right,but id there any way to do what i want?

            D 1 Reply Last reply
            0
            • S sianatia

              Right,but id there any way to do what i want?

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

              WPF (Windows Presentation Foundation).

              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              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