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. make only a rectangle of a form transulent

make only a rectangle of a form transulent

Scheduled Pinned Locked Moved C#
questioncsharptutorial
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.
  • S Offline
    S Offline
    softwarejaeger
    wrote on last edited by
    #1

    hello, in .net it is possible to set the opacity of an window.form, but thats for the whole window, how can i make it, that i have only a part of the window transulent? for example only a rectangle from: X=0 Y=0 W=this.Width H=50 is something like that possible?

    N 1 Reply Last reply
    0
    • S softwarejaeger

      hello, in .net it is possible to set the opacity of an window.form, but thats for the whole window, how can i make it, that i have only a part of the window transulent? for example only a rectangle from: X=0 Y=0 W=this.Width H=50 is something like that possible?

      N Offline
      N Offline
      noah74
      wrote on last edited by
      #2

      Hi, You can use the form property "Transparencykey". How to use? 1) Set the Transparencykey value to a color, for e.g. Red. 2) Add a panel control and set his color to Red. 3) Run the application. Note: All controls that will have the same color as you specify in the Transparencykey will be 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