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. Transparent Button?

Transparent Button?

Scheduled Pinned Locked Moved Visual Basic
question
3 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.
  • C Offline
    C Offline
    cezzzzzzzzzzar
    wrote on last edited by
    #1

    How could I make a transparent button so that it is not shown in a vb. net form, but I should be able to click it on its current position?

    cezzzar

    J T 2 Replies Last reply
    0
    • C cezzzzzzzzzzar

      How could I make a transparent button so that it is not shown in a vb. net form, but I should be able to click it on its current position?

      cezzzar

      J Offline
      J Offline
      jsampsonPC
      wrote on last edited by
      #2

      By setting the .Opacity value. You'll have to set it to 1, and not 0. If you set Opacity to 0, the button kills itself and is no longer usable. I'm sorry, excuse that answer. .Opacity is not a property of the Button. I don't believe you can do this with the native .NET button class. You may have to use an image-replacement, or write a new button class that inherits from a .Opacity-enabled base-class. More Information: 1. http://www.codeproject.com/buttonctrl/EasyTransparentBut.asp

      Jonathan Sampson www.SampsonResume.com

      1 Reply Last reply
      0
      • C cezzzzzzzzzzar

        How could I make a transparent button so that it is not shown in a vb. net form, but I should be able to click it on its current position?

        cezzzar

        T Offline
        T Offline
        The ANZAC
        wrote on last edited by
        #3

        I would use a panel with no border and transparent background color, and use the panels click event. This way it will be invisible, but clickable. I just tested this and it worked fine.

        Posted by The ANZAC

        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