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. Transparant picturebox

Transparant picturebox

Scheduled Pinned Locked Moved C#
graphicshelpquestion
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.
  • T Offline
    T Offline
    timbo timbo nl
    wrote on last edited by
    #1

    Hi, I'm trying to place a control onto a form behind a picturebox. Some area's of this picturebox are defined as transparant. Now I run into the problem of not seeing the controls anymore. What does happen is the transparent area is taking the same color as the form so it looks transparant but not truly is. What am I doing wrong?! thanks in advance Here is some sample code.. // set transparant color Bitmap bmp = new Bitmap(this.ImgBackground.Image); bmp.MakeTransparent(Color.FromArgb(255,0,255)); this.ImgBackground.Image= bmp;

    S 1 Reply Last reply
    0
    • T timbo timbo nl

      Hi, I'm trying to place a control onto a form behind a picturebox. Some area's of this picturebox are defined as transparant. Now I run into the problem of not seeing the controls anymore. What does happen is the transparent area is taking the same color as the form so it looks transparant but not truly is. What am I doing wrong?! thanks in advance Here is some sample code.. // set transparant color Bitmap bmp = new Bitmap(this.ImgBackground.Image); bmp.MakeTransparent(Color.FromArgb(255,0,255)); this.ImgBackground.Image= bmp;

      S Offline
      S Offline
      Sasuko
      wrote on last edited by
      #2

      set yourPicturebox.BackColor = Color.Transparent

      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