Transparent Form Background Using Me.TransparencyKey = Me.BackColor?
Apr 6, 2012
I can make the background color of the form transparent by using: "Me.TransparencyKey = Me.BackColor"
"Me.BackColor" is set to default "Control", which I think uses 240;240;240 as the color.But using that color as the transparent mask color leaves gaps in controls who are also using that color.By changing the Me.BackColor to a "rare" color this problem is fixed.What problem really is, is that using the "Control" color I get the ability to ALSO interact with whatever is behind my form, which any other custom color does NOT.
Question: Why is this?
Request: I would like to use a custom color as the transparent color but KEEP the ability to interact with whatever is behind the form, how can I make it do that?
View 1 Replies
ADVERTISEMENT
Sep 18, 2009
I can't remember exactly if this is possible or not but what I am attempting I would think should theoretically be possible. I know it is possible in WPF but the company I am working for doesn't want to make the transition just yet. Basically what I want is to use a background image on a form for the background and I have a docked control on the right and left. I have set the background on both of these docked controls to transparent however it is showing the back color rather than the background image. I tried, rather than setting the background image property, to override the onpaintbackground and onpaint events and use e.graphics.draw(picture, me.clientrectangle) but it still seems to just pick up the backcolor as the true transparent background so I'm wondering if it's possible to get it to show the background image through the control rather than the backcolor of the form?
View 3 Replies
Feb 18, 2011
Background of form: black
background of char, bombs and shrooms: transparent
picbox behind char, bombs and shrooms is regular (marioland)
How can i fix it so the transparent parts dont see form as background but marioland as background?
View 12 Replies
Feb 5, 2011
how can I make my Form background color transparent?just the form those object/text are not included.
I watched this in yout*** like a month ago, i keep on searching but i cannot find.if you want to be happy, find something you love to do and do it for free, then find someone to pay you for it.
View 1 Replies
Feb 22, 2012
I am trying to create a simple VB 2008 application with a resizable form that has a transparent background. Seems easy enough to do, but if I do nothing more than create a new Windows form project with one form, set the transparency key on the form to a colour, and then set the background to the same colour, and then run it, after about 3-5 resize operations, I cannot resize the form anymore, except from the top, if even then. No errors, just odd behaviour.
View 16 Replies
Jul 28, 2009
I have an app that uses transparency so that the background of the app is a custom shape.The problem I am having is the rounded corners are jagged. Not a nice clean rounded corner like you would see on an icon or widget. I have tried several different image types (i.e. PNG, GIF, etc). But it seems when I use the transparency Key the quality on the edges gets worse
View 6 Replies
Jun 23, 2012
when i add my form into the picturebox the background color is argb(152, 0, 136)
and i tryied to use TransparencyKey and Still the background color is 152, 0, 136
code:
Dim frm As New Form
frm.BackgroundImage = Image.FromFile(open.FileName)
frm.BackColor = Color.FromArgb(152, 0, 136)
[code].....
View 1 Replies
Jul 28, 2009
I have an app that uses transparency so that the background of the app is a custom shape. The problem I am having is the rounded corners are jagged. Not a nice clean rounded corner like you would see on an icon or widget. I have tried several different image types (i.e. PNG, GIF, etc). But it seems when I use the transparency Key the quality on the edges gets worse.
View 4 Replies
Dec 31, 2011
I have multiple picturebox controls in my form. Both of them contain an image with a transparent background. I want them to be on top of each other. I've already set their BackColor property to Transparent, but when I place one on top of the other one, the following happens: [URL]. How can I make them transparent while they are on top of each other?
View 4 Replies
Aug 11, 2010
in vb.net. Main form is transparent and I added big picture box to hold background image. Then I added transparent panel to this form but now i can see my desktop trough that form. I don't wanna c my desktop or other windows. How can I avoid this without changing panel background color? coz I want same image as my panel bg too.
View 4 Replies
Jan 30, 2012
I have a form, and the background color of the form is set to the transparency key, making the background of the form transparent. The problem I'm having, is that the form cannot recognize the MouseClick event (when I click on the transparent background of the form). I figured out that the transparent background is triggering this problem. When I shut off the transparency, everything works fine.My question is.. Is there any work around? I still need to use the form to be able to access certain objects that are rendering there, so I don't think I could use something like a "Panel" for example, because the objects will render underneath and possibly make them inaccessible.
View 5 Replies
Feb 8, 2009
I have a form with transparent background (using png file).All controls placed over it becomes black at start then they change there color and comes to there original state on MouseHover. Its not the transparency keys problems since the transparency key color is different that controls back color. What can be the problem?
View 5 Replies
Jul 9, 2009
I use the 'TransparencyKey' feature on my form to make a 'Panel' control transparent so i can see a program thats running underneath my form. If i try and do a screen grab (Capture a picture) of my form it only grabs a image of the background of my desktop and the program below and not my form.
If i use the normal Windows 'PrtScrn' key to grab a still image it manages to capture my form and underlying programs fine. This appears to be a limitation of transparencykey because as soon as you disable/remove it the screen grab works fine on the form. how to resolve this problem as removing the 'TransparencyKey' feature is not a option as i require this for my program
see the attached image for a better description of the problem
Image on 'Left' shows the transparent window viewing the desktop and program beneath. Image on the right shows the captured image and it completely missing the form and transparent window from the shot.
[URL]
View 11 Replies
Dec 2, 2010
what shall i do if i want to make a label's backcolor transparent or even just looking like transparent? VB.NET doesn't support transparent label backcolor.
View 11 Replies
Jul 14, 2009
Trying to set the BackColor of a groupbox to be transparent, but it makes it the Form's color (Control).
I have a Picturebox with a blue picture in it between the form and the groupbox, so it should be making the groupbox's backcolor appear blue.
what am I doing wrong here i'd like the circled red area transparent or the GroupBox's corners square
View 4 Replies
Nov 1, 2009
How do I make a frame's backcolor transparent?
View 1 Replies
Nov 28, 2011
I know put 1 picturebox(or other object) transparent:
objectaname.Backcolor=color.transparent
but imagine that you have 1 image on it... the backcolor image, is showed.how can i hide it?
View 1 Replies
Jul 12, 2009
I've set a label's BackColor property to 'Transparent' but its just White? It's not going transparent?
View 3 Replies
May 10, 2010
I'm using a rectangle shape with gradient fill, i wanted to write some text on it using a label and set the labels backcolor to transparent, but does not work.
Anyone know if a workaround is possible?
View 7 Replies
Oct 30, 2009
i have a label and from its properties for Backcolor i choose Transparent... However is always the control color why is that? I have a background and i need the label to have the background`s color..
View 6 Replies
Apr 13, 2010
I want to use a PictureBox2 (pic.png) above PictureBox1 (pic.jpg) on VB I used this code:
PictureBox2.BackColor = Color.Transparent
PictureBox2.BorderStyle = BorderStyle.None
but it doesn't work
it makes the border black & white
View 4 Replies
Jun 24, 2010
How do i change the Environment Background color as explained below?
View 4 Replies
Apr 1, 2010
I have a button with a backgroun image of color white. My button is sitting on the toolbar which has a bacground color of Blue. When the button is sitting on the toolbar, the button looks white, however I want it to look like blue as the the background color of toolbar is Blue.
How should I achieve this in WPF..
View 3 Replies
Apr 7, 2012
I have a problem with 2 label, the background is not transparent, I set both BackColor = transparent, but nothing, they don't work. Both Label are located inside a panel, here is the picture so you can better understand:How can I do?
View 1 Replies
Feb 7, 2010
Is there a way to draw an ellipse with a transparent background and be able to control it's
opaqueness? I can create a brush with a color.Transparent but now how do I control the opacity of this color?[code]...
View 2 Replies
Feb 18, 2011
I have hundreds of .gif images with white backgrounds that I would like to make transparent using a vb.net procedure.
View 1 Replies
Oct 1, 2010
this code sets a richtextbox background as transparent:
[Code]....
View 8 Replies
Sep 26, 2010
I have a bunch of dynamically created scrollbars. They show up as gray against my otherwise colorful UI.
Anyone have code to either set the scrollbar background to a given color or to make it transparent so it paints as the
background color of the panel it resides on?
View 4 Replies
Nov 1, 2011
ok, is there a simple way to make a color in an imported picture in a picutrebox transparent?
View 2 Replies
Feb 16, 2009
I have inserted PNG image (transparent background) but it can't go to transparent. I want it to be front of other label but it's gray background hide the text what i have to do with this?
View 7 Replies