VS 2008 Form Transparency?

Dec 19, 2009

I am working on an application which has transparent forms. By using transparency, I am smoothing the edges of the forms. I have got a bitmap which I set as background image of the form. I use red as form's transparency key. Although transparency works fine when my computers display is set to 24 bit color, when I change the setting to 32 bits, transparency doesn't work. In this case, users who have 32 bit color dept setting on their systems will not be able to use my application. When I searched the web, I found some solutions such as using bitmap.maketransparent command, or using magenta color for transparency key or using 32 bit bmp files etc. However none of them worked for me. Some forums suggest that this is a bug and there is no way to solve this problem. But if so, why some applications such as Winamp can display transparent forms although my color dept is set to 32 bit! I am sure there is a solution. I am working on VB.NET 2008 and my OS is Windows Xp Service Pack 2. Please help me about this subject.

View 10 Replies


ADVERTISEMENT

VS 2008 : Set The Transparency Key In MDI Parent Form?

Apr 10, 2009

How can i set the transparency Key in MDI parent Form?

View 1 Replies

VS 2008 Transparency Key Does Not Work With MDI Form?

Nov 14, 2009

I can't get the transparency key to work with the mdi child, I really need it to work as well, but I just can get it to work properly.

View 2 Replies

Have Transparency On A Form?

Feb 7, 2009

Is it possible to have transparency on a form but not on a button on the form?I know transparency can be controlled for the form in properties (VB 2005), but how can we isolate the button from being affected?

View 2 Replies

VB Form And Picturebox Transparency?

Dec 29, 2011

I want to try an simulate a fake lighting system in Visual Basic 2010 by using 2 images.One is Form1's background, and the other is Picturebox2's image. Picturebox2's image is a black background with a transparent circle in the middle.The only problem is, when transparent, it shows the background of the form, and looks right through the background image.How could I get around this so that the transparent part of the image is Form1's background image, and not the backcolor?

View 4 Replies

Form Transparency - Add A Control (like A Datagridview)

Jan 30, 2012

I used some code i found that extends the aero glass border across the entire form... looks great... however when i add a control (like a datagridview) it doesnt look right at all because of the transparency of the form...

View 5 Replies

Set The Transparency Key To The Form Back Colour?

Mar 20, 2011

[URL]

i hav a transparent png. i need the form also to be transparent so what i did was set the transparency key to the form back colour see what happens (it is in the pic)

View 9 Replies

VB 2005 And Form Label Transparency?

Dec 17, 2005

I have just converted my first VB6 application to a VB Express version. I have a fair sized library that I would like to convert but I am having a severe problem with a very simple little game program that I selected for a trial conversion. The problem is this. I do a lot of graphic / art work in my GUI and heavily use labels with transparent backgrounds. When I converted to VB Exp 2005 the labels are no longer transparent but rather carry the background color attribute of the Form. Is this how MS implemented transparency in VB 2005? If so the product is of no use to me whatsoever. I checked the Labels attributes and they are set to transparent. But they are not being displayed as such.

View 3 Replies

.Net WinForms Form OnPaint() Transparency Refresh?

Aug 13, 2010

I'm trying to write some toast-style popup notifications (similar to Growl) which should appear next to the system tray and stack as appropriate.I can handle the instantiation/location/etc... but I want to add a capability for non-rectangular toasts. I'd also like to have Alpha transparency so a semi-transparent background PNG on the toast form would blend with the desktop or windows behind it.

So... To get the obvious out of the way: Form.TransparencyKey is not sufficient for my needs as it's an all-or nothing transparency effect I want to get 50/50 foreground/background in some places, 0/100 in others, 100/0 in yet others etc.My initial approach is to override the OnBackgroundPaint() method, comment out the call to MyBase.OnBackgroundPaint and use the graphics object in the eventargs to draw exactly what I want to a form.This seems to work to start with - at the moment, I'm just drawing some rectangle for testing purposes so a PNG may present new difficulties but I haven't got there yet.

What I haven't been able to accomplish is updating the graphic - The first time the form is rendered, it shows perfectly as I'd expect (no border, just some rectangles floating on a desktop). If I move the windows behind the transparent window, the transparent window doesn't update/re-paintI believe that I need to be calling Me.Invalidate() to force a re-draw but am unsure when I should make the call - How do I know a window behind me has changed its' contents?

Edit: I tried putting a Me.Invalidate() inside a timer just to test how the redraw happens - it seems that it does trigger a re-draw but the re-draw opccurs OVER the existing form background - ie an area that was originally 50% opaque is now 75% opaque (50% + 50% of what was there before)So, after a couple of Invalidate()s, my form is showing as a black box - I need to clear the background of the form before re-drawing but Graphics.Clear(Color) seems to simply do a fill with the specified color - and obviously for the purposes of this question, Colors.Transparent doesn't really mean transparent - It seems to be a trick used when rendering the window to "show contents of control beneath this" which just doesn't work when we're dealing with the form itself?

Imports System.Drawing
Public Class TransparentForm
Private Timer As Timers.Timer

[code]....

View 1 Replies

Transparency/Opacity On Custom Shaped Form?

Sep 14, 2011

I have a custom shaped form with a transparency key of black. With the opacity set to 100%, I do not see the garbage around my custom shaped form As soon as I change the opacity, I see a transparent square(my borderless form) around my form.

How do I make it where my form retains its custom shape, and can have an opacity of less than 100%?

If you want something you've never had, you need to do something you've never done.

View 1 Replies

Transparent Splash Screen - Adding The Form Color To The Transparency?

Feb 15, 2010

I've tried adding a splash screen ]...to one of my applications and after exploring a while I somehow managed to get it working what bugs me now is that my splash screen is in fact a image inside a picture box and the form always shows the control color behind so what I tried is adding the form color to the transparency key this worked, somehow now, I use a png image that has some transparent effect also what I've noticed is that where I would want to show the transparent effect from the image the transparent color that is set in the forum shows below is the image to get my point of view:

I'm wondering if I can remove that "pink" color (set by me in the forum) from the image .I want to get a effect like the one Adobe products have for example

View 7 Replies

Make A User Control That Draws A Line And Adds Transparency Over A Form

Nov 12, 2010

I am an intern at a company doing Drawing Tools for their program. My supervisor is currently having me just make a user control that draws a line and adds transparency over a form. (I started this internship very early, so my knowledge is very limited compared to what it should be for a standard intern)

This is what I have so far:

Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
If MyBG Is Nothing Then
MyBG = New Bitmap(Me.Width, Me.Height)

[CODE]...

View 5 Replies

VS 2008 Making A Picture Box Have A Transparency?

Oct 26, 2009

Is there a way of making a Picture Box have a transparency so that any objects (e.g buttons) that are layered underneath the picture box will be shown through?

Or if there is any other way of getting the mouse coordinates only on the form. So when the mouse cursor is placed at 20,20 on the form it will give back the coordinates 20,20 no matter where the form is placed on the screen

View 5 Replies

VS 2008 Real Transparency With Textbox?

Feb 27, 2012

I'm trying to make a textbox either fully or partially transparent, so you are typing over whatever is behind the textbox. I need it to actually be transparent and not just have the illusion of transparency, because I'm going to put a control behind the text box so the user can enter text over the other control to line up the characters. I have found dozens of threads and pages about doing this and they are all drastically different and none of them seem to work at all

View 2 Replies

[2008] Make Transparency Of PNGs?

Mar 2, 2010

I have one question. I have two PictureBoxes, one PictureBox is under other.When i'm loading PNGs with transparency, they not transparent

View 6 Replies

VS 2008 ShockwaveFlash1 Transparency Doesn't Work

Jun 26, 2011

I did a test using AxShockwaveFlash1, and while I set the WMode to Transparent, and tested the form, the transparency didn't work! How am I supposed to make it transparent?

View 1 Replies

[2008] When Loading PNGs With Transparency, They Not Transparent

Feb 20, 2009

I have one question. I have two PictureBoxes, one PictureBox is under other. When i'm loading PNGs with transparency, they not transparent! How can i fix that with code?

View 2 Replies

VS 2008 Color Outline On Text When Using Transparency? (56k Warning)

Jun 10, 2009

I used my forms TransparencyKey property to make the form background invisible, but to keep the controls 100% visible. But, when I add a label onto the form, a border or outline shows up around the text (doesn't matter which color I do it with). My friend says that this isn't fixable and he said that it doesn't happen in VB6. I'm tempted to remake the project in VB6, but Windows 7 is being released soon and compatibility is a must.

What about C#? Does the issue occur as well? If not I'll just go with that.

View 3 Replies

VS 2008 - Image Transparency - Loading A Bunch Of Pictures On Top Of One Image

Oct 14, 2009

Ive been programming in VB6 for years, i figured its time for an upgrade. Here's what im doing, and what the problem is:

Im loading a bunch of pictures on top of one image. They are all PNG files, and some of the images have transparent edges, and some semi-transparency within the image itself.

So basically, i need to be able to load these images on top of the other images, and still maintain the transparency.

Is this possible in VB08? This is one of the main reasons i moved to 08 from vb6, more things possible including multithreading.

View 11 Replies

.net - Picture Box Transparency In Vb?

Feb 18, 2012

When i run my code, the picture box has a background colour, even though I have set the background colour to transparent in the properties window.

View 1 Replies

Flash - Transparency In Swf In .net?

Mar 9, 2010

how can i control swf background transparency in vb.net either with flash.ocx or if there is any other way.so that if i have a swf animation block with red in background and some text written with yellow. now how can i remove that red background in vb.net.actually i want to make a system so that i can choose any color as transparency key for swf like in tv channels logos.

View 2 Replies

Get Image Transparency To Come Through In VB?

Jul 20, 2009

how you can get image transparency to come through in Visual Basic? Because if you try to put an image with some transparent sections on it on a form, the transparency turns into the form background colour (Though you could change the background image to whatever you want displayed under the image, but that's not the point) and basically I can't find any way to do irregular transparencies.

Alright, that's not very simple. I'll try to give an example:

You have an animated GIF of...say...fireworks. And it has a transparent background. Now say you have a few labels with text in them. When you draw the picturebox over the labels, the text in the labels is covered by the background of the fireworks, even though it's transparent. You can't see the labels. You want to see the fireworks exploding over the text

I can't see any way of getting around this, other than doing it in another program and putting the text and fireworks into one PictureBox. but it would be so convenient if it could work in Visual Basic, because you can control the text the in the labels and keep the animated "fireworks" exploding at the same time without using multiple animated images.

View 6 Replies

Picturebox PNG Transparency?

Jun 29, 2010

Right now I currently have an array of pictureboxes, and over them I want another large picturebox that has a sort of transparent fog effect. I created a png with this and made sure to save the alpha transparency, however when the picturebox shows up, you are not able to see underneath it. Is there anyway to fix this without using the GDI instead of pictureboxes? Because of the way the program is set up, I think GDI would be too slow for my purposes.

View 1 Replies

Set The Transparency Key To A Color?

Oct 1, 2010

The 1st problem: I set the transparency key to a color and then set the forms background color to that color, and then set the background image to an image with rounded edges to give my form rounded edged. But the corners look VERY jagged.

The 2nd problem: Is there a way to make a form appear in the lower right corner above the task bar? Kind of like Avasts virus database definition update window.

View 10 Replies

Transparency In MDI Forms

Feb 7, 2010

Ive been on the same thing for the past seven hours now. Im trying to ether get the MDI child form title-bar-less in maximized mode, or now, get the transparency working to where the MDI child has transparency. ) This is for a home automation system im working on. major alpha stages. Hardware control works ;) but this stupid GUI is kicking my butt. So three options i have. In maximize mode on the MDI child remove the title bar, or remove the parents scroll bar so i can make the MDI child the size of the parents MDI window, or make the MDI child transparency work. Im posting a screen shot to show you what im talking about.

[Code]...

View 3 Replies

Transparency Of PNG That Are In A DLL, Is Not Working

Jul 20, 2009

The member of this comunity, Keymaf, help-me to do a DLL with PNG files and with any other type of file. But now, there is another problem. The transparency of PNG are not enabled when loaded in my project.

View 4 Replies

8 Bit GIF - Transparency / Forms And Controls

Apr 3, 2012

I have a 8 bit Gif, that is transparent, with controls sitting on top of it, all in a custom control. This part works fine. However, This control is a menu ring (appears around another control with a few options). The transparent part is over a Picbox, that is in a panel. The transparent part of the image seems to skip the picbox and go right through to the panel. I set the panel to a back color of RED. The custom control when its placed instead of showing the image in the pic box that it is on top of, it shows the RED panel I have made sure all my Z orders are right.

View 5 Replies

Create Transparency In A Sprite?

Jun 29, 2011

I've been trying to figure out how to create transparency in a sprite, i.e. with the use of a mask. Problem is, every tutorial I could find was either completely irrelevant or for freaking Visual Basic 1858.

View 1 Replies

How To Get Transparency Working In Labels

Jan 6, 2009

I search for a grand total of about four hours online for a method of how to get transparency working in labels in VB.NET 2008. After finding nothing but some example that I have no idea how to implement into my project, I have almost given up. Yes, I've heard about setting the parent properties, but in my case it is imperative that I have labels on top of a PictureBox. (Apparently it's not possible through normal means to have transparent labels over PictureBoxes.)I'm losing my patience with VB.NET, even considering switching back to VB6. How could Microsoft make such a stupid decision? Today I decided to use a stupendous workaround and instead of labels, use transparent PNGs of bitmap text. And guess what? It has the exact same problem as the labels when placed in front of controls! The transparent background has been set to the colour of the form's background!

View 5 Replies

IDE :: Aero Text Transparency?

Jun 16, 2010

My problem is when I develop my own applications in Visual Basic 2008/2010 with the Aero interface, I cannot see the text both on the form and in components. After researching on the internet, I have come to a dead end. Is there a way of fixing

View 2 Replies







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