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?
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.
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.
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..
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?
I have a form and on it there is listbox. What I want to do is to make the listbox's backcolor transparent. I really do not understand. I have searched many sites but I couldn't find an exact answer. Is it really that hard to make it??? I found this code on a few sites:
i'm trying to place a label with "backcolor = color.transparent" over a progressbar, but it seems that the progressbar becomes transparent too, how can i avoid this?
i have a basic question....im in an online class so we don't really get too much detail in the programming languagebut i would like to know a little more. basically, im creating a "concentration" style game, where you see all cards (pictureboxes) face down, and when you click them, the image shows up.i have the whole layout of the game already set up,ut i have NO clue how to only show the color (background color, color..whatever u want to call it) of the picturebox, and not show the actual image of the picturebox until it is clicked
I have a black & white image (find below)I want to print that image by clearing the background(i.e black dots in the form of rectagle)If i print the below bank check it is printing completly black (unable to read the content). Pls do the needful. Many Thanks
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?
i know how to make a picturebox have a transparent image within it, and i know how to make forms transparent, but what i cant seem to figure out is how to add an image which has transparent parts to a completely transparent form and have it still look nice. you know when you find images which look really good by them selves, but then look really bad when moved to a different background cause they still have the white border (or any other colour border). is there ANY way which i can accomplish removing this border? its almost like the alpha channel that removes the ugly border, when putting the image on the form, is forgotten about and the colour of the forms background fills in the gap..
I'm trying to make an image in a picturebox transparent, so that i can see and click the controls behind it in the transparent area. This reason for this is that i'm trying to make a hexagonal grid that needs each cell to work independantly of each other when clicked, and needs to include a changing image. I'm trying to do this with pictureboxes, but even though i've made the GIF images i'm using transparent in photoshop, They aren't displayed as such in design view or at runtime, as the corners stay grey. I'm making a clone of the Quiz-show Blockbusters
what would be the fastest (best) way to make transparent all pixels in one image that are white on other image?
Let's say that have 2 transparent images (.png) and want to delete some portion of the first image. Pixels to be deleted (made transparent) are defined as white on the other image (some kind of deleting mask).
Me again. I also have a png image and a web cam video in my form. I have transparent parts on the png image that show through to the form background colour.
How do I set it so it shows the video in the background, when I put the png image over the top of the video?
At the moment its still shows straight through to the back of the form?
with a triangle formed object and the rest of the image(background) are transparent... how do i make the transparent area not click able?my code how it is now>
Private Sub PictureBox2_MouseDown1(ByVal sender As Object, ByVal e As MouseEventArgs) Handles PictureBox2.MouseDown 'code for picturebox not start an click event. only if the image will be clicked>>
I started off with a VERY simple form and added a picturebox item to it. The code I was following used a procedure in the Form1.vb to override the transparent color of the image: bmp.MakeTransparent(Color.Fuchsia) bmp was defined in the Form's "Load" section.
Now things are different. I have more than 20 picturebox items now, each created in the Form1.Designer.vb code as follows: Me.Tile020.Image = CType(resources.GetObject("Tile020.Image"), System.Drawing.Image) Me.Tile020.Location = New System.Drawing.Point(922, 297) Me.Tile020.Name = "Tile020" Me.Tile020.Size = New System.Drawing.Size(64, 64) Me.Tile020.TabIndex = 3 Me.Tile020.TabStop = False
The image is referenced from the resources. When I run the program, I'd like all these images to have their backgrounds transparent. None of these controls is currently referenced anywhere in the code at present. What's the best way to get them to display transparently, other than recreating them as transparent .PNG's?
I am working on my game maker and I need to make it so that a picturebox with a transparent image will show the control behind it, like if the control has a image or just a color.
I have a form with two overlapping images. The images are exactly the same size and location on the form. The upper image is a GIF and is set to transparent. I have set the lower image as a parent of the upper as follows:
Me.PictureBox4.Parent = Me.PictureBox1
The transparency works fine but for some reason the upper image moves to the lower right of the parent image when I run the program.