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. toggle button picture disappears when disabled

toggle button picture disappears when disabled

Scheduled Pinned Locked Moved Visual Basic
graphicsquestion
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.
  • F Offline
    F Offline
    fox21
    wrote on last edited by
    #1

    hi everyone I'm writing an applciation in wich I use a toggle button. On the button is a picture: me.ToggleButton.picture = new bitmap(application.startuppath & "\afbeeldingen\min.png" Now the button has to be set disabled on startup. So i write the following code: me.Togglebutton.enabled=false It works, but the picture on my button becomes a gray rectangle??? (so I don't see my picture anymore when disabled) Anyone any ideas thx in advance

    A 1 Reply Last reply
    0
    • F fox21

      hi everyone I'm writing an applciation in wich I use a toggle button. On the button is a picture: me.ToggleButton.picture = new bitmap(application.startuppath & "\afbeeldingen\min.png" Now the button has to be set disabled on startup. So i write the following code: me.Togglebutton.enabled=false It works, but the picture on my button becomes a gray rectangle??? (so I don't see my picture anymore when disabled) Anyone any ideas thx in advance

      A Offline
      A Offline
      albCode
      wrote on last edited by
      #2

      Sure when u set enabled to false picture get grayed but try to set visiblity insetad enabled _____________________ Proud to be Albanian _____________________

      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