Transparent Controls Over Form With Background Image Shows Backcolor Not Image?

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


ADVERTISEMENT

VB Image - Transparent Parts Dont See Form As Background But Marioland As Background?

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

Put 1 Image Transparent(hide Backcolor)?

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

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

Transparent Rotated Image Shows Original

Aug 15, 2010

I have a image with a transparent background. I clone it, rotate it, and save it in a picture box. Works fine (in that I can see the original object overlaid on the background image below it). However, the original unrotated image is also superimposed on the .image layer *with* the rotated one. Try as I can, I can't stop it from appearing.

Curiously enough, if I change the image to non-transparent (a .bmp instead of a .gif, for example), I don't have the problem. Of course, I also can't see the background {:<(

Code snippet:
Dim myGraphic As Graphics
Dim m As Image
m = ArtHorImage.Clone

[Code]....

View 3 Replies

Transparent Background PNG Image In .NET?

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

Png Image Transparent With Video In Background?

Mar 26, 2011

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?

View 2 Replies

Set The Tbox Image Background To Transparent?

Mar 17, 2009

Hiwould like to set the tbox image background to transparent>

[Code]......

View 2 Replies

VS 2005 Image With Transparent Background?

Dec 22, 2009

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>>

[code]....

View 4 Replies

Give An Image Inside Of A Picture Box A Transparent Background?

Apr 7, 2008

Is it possible to give an image inside of a picture box a transparent background? Like, for example say i have a red circle on a white background, is it possible to make the white transparent?

View 6 Replies

Transparent Listveiw Or Stretch Listview Background Image?

Apr 15, 2010

I am making an operating system based game in visual basic. The real problem is that the game runs full screen and when it comes to desktop backgrounds I am having heaps of problems.First I had the desktop as just the forms background image but I needed to add icons to the desktop so I anchered a listveiw onto the background and the problem is that the listview is not transparent and you can't see the desktop background.

I thought that I could fix that problem by setting the background image on the listveiw as the background image but the problem is when i set a background image on the listveiw there is no option to stetch the image. The only option is to tile the background image.

How can I get the listveiw either transparent or set it a stretched background. ( the user gets to choose a desktop background so they all need to be able to stretch to the full desktop of the user's screen resolution.)

View 10 Replies

VS 2008 - Picturebox - Remove The Image And Have A Transparent Background

Feb 26, 2010

Im displaying an image in a picturebox when i mouse over a button PictureBox1.Image = (My.Resources. Get_Info_icon) But when the mouse leaves the button how do i remove the image and have a transparent background, so u cant actually see the picturebox ?

View 1 Replies

Programmatically Determine Background Of Image (logos, Etc) And Make Transparent?

May 20, 2011

I'm attempting to write a solution so that my user's can "watermark" their Images with their Company Logo. I've got the actual watermarking part done and working so now I'm creating the "upload logo" feature so that they can provide me with the Logo they wish to appear watermarked onto their Images.I'm using VB.NET and this will probably end up in a Web Service that accepts the Logo JPG file, and returns the "altered" Logo. What I need to happen in this Web Service is:

1) Gray-scale the image. Which I have working as well, thanks to this article.

2) Make the background transparent (so the logo looks clean when watermarked onto an image). This is where I'm stuck.

I think for the most part, any logos that are uploaded will have a generic white background but I can't assume that. Is there a way to somehow detect the background of an image or the background colors, so that I may make those colors transparent?So basically what I need is just a way to determine the background on an Image or even just the background colors so that I may make them transparent.

View 3 Replies

PictureBox Controls In Form With Transparent Background

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

Forms - Background Image Transparent Painted With Custom Linear Gradient

Jun 1, 2012

I try to achieve to paint a form with a gradient backcolor and overlap an image with transparency. This is possible? I want using a tile background image with transparent background and paint the background with a custom linear gradient.

View 2 Replies

All Controls On Transparent Background Form Are Black At Start Then Changes Color After Focus

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

Controls Flickering Due To Background Image Of Panel?

Mar 5, 2012

i have developed a windows application whose interface has multiple picture boxes panels with background images for rich look and also a usercontrol which contains a gridview and WPF scrollbar in an element host. All these controls are placed in one panel (this is also having a background image) which is equal to the size of windows form. The reason for placing all these controls in the panel is that the window can be resized, if needed, allowing scrollbars.

Due to these large number of controls in which some of them have transparent backgrounds loaded in a large panel having background image, the window is flickering when moved or any other application's window is moved over it.

View 4 Replies

Transparent Image Looses Position On Form

Jul 2, 2010

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.

View 2 Replies

How To Convert Bmp Image Into A Transparent Image

May 23, 2012

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

View 4 Replies

Background Image Causes Form To Lag And Flicker?

Jun 3, 2011

I have a 18kb 1024 x768 jpeg image that is set as background image of my form. The problem is the form now lags like crazy. How can I eliminate the lag?

View 1 Replies

Change Background Image In MDI Form

Mar 4, 2009

I want to Change BackgroundImage In MDIFORM in VB.Net and Set Picture.

View 1 Replies

Change The Background Image Of A Form ?

Apr 20, 2012

How do I change the Background Image of a form ? not with the properties I know how to do it from there I guess . but I want to change it with coding .How do I do that ?

edit : and another thing when I try to add an image to a image box it shows me the image error image. you know when it can't load the image. it actually showed it for 1 second and then it disappear .here is the code for the Image box

ptbplayer.ImageLocation = CurDir() & "Images/player.jpg"

View 3 Replies

How To Move Background Image On Form

Jul 1, 2010

How do you move a forms backgroundimage? Like this
picturebox1.left -=1
Is there a way to do this for a forms backgroundimage?

View 9 Replies

Is There Another Attribute That Controls If A Background Can Be Transparent?

Feb 16, 2010

I have made one game Tic tac toe. Where the use could place a X or a O i used a empty label with back colour "transparent" for them to click on.I have now come round to making a Connect 4 game in the exact same solution, once again i am using empty labels for the users to select which slots to place there counters. However when i select "transparent" as these labels back colour they still dont go transparent.Its now happening on all forms, all projects, is there another attribute that controls if a background can be transparent?

View 6 Replies

Change Form Background With In-project-image?

Nov 5, 2009

Change Form Background With In-project-image

View 1 Replies

Changing Background Image By Shaking The Form

Apr 24, 2011

is there a way to change the background image of a form by just shaking the form? i'm using vb 2010.

View 4 Replies

Form Background - Image Partially Overlays Itself

Jun 22, 2010

I added an image as the background image for a form in VB.net. When I run the program, after approx. 5-6 seconds, the image partially overlays itself, as in an offset overlay of the underlying image. I never had this problem in VB6, but I did have it the other time I used a background image on a form in VB.Net.

View 1 Replies

How To Use Flash Movie As Background Image Of Form

Jan 8, 2011

I want to put a flash movie in my vb.net form as a form background. i want controls like buttons and labels on top of that flash movie.

View 1 Replies

Refresh Main Form Background Image?

Feb 3, 2012

how i can refresh my main form background image once a user picks a different image as the background.I have 2 forms namely Form1 (main form) and form2 from where the user can select the image he or she would like to set as the background image of form1.But the problem is that after selecting the image file from form2,when form1 is opened the background image doesnt change and remains the same as before.Only when the user ends the program and re-runs it again the image changes.

I tried

Form1.reload()

View 10 Replies

Using A LinkLabel To Change Form's Background Image?

Feb 3, 2011

Basically I'm trying to make a layout change on a form if a link label is pressed. My main form I want this on has a "default" layout with a background image in place. What I want to do is, name the link label "Plain Layout". When the link label is clicked, remove or "hide" the background image and replace it with the background color of "control". After this action is performed, I need the text to change back to "Default Layout" and "show" the image.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved