473,657 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form.Transparen cyKey doesn't work...

VMI
I have a Windows Form and, for its BackgroundImage , I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKey property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong? The RightToLeftLayo ut property is set to False.
On the other hand, if I remove the background image and set Form.BackColor
to White, it'll work.
I'm using VS 2005.

Thanks.
Apr 27 '07 #1
1 3049
"VMI" <vo******@yahoo .comwrote in message
news:eb******** ******@TK2MSFTN GP04.phx.gbl...
>I have a Windows Form and, for its BackgroundImage , I put an all-white
bitmap (opened mspaint, and immediately saved as bmp). Then I set the
TransparencyKe y property to White (I also added it in the Form_Load). For
some reason I still can't see "through" the Form. Am I doing something
wrong? The RightToLeftLayo ut property is set to False.
On the other hand, if I remove the background image and set Form.BackColor
to White, it'll work.
Is your display set to more than 24 bits of color? If that's your case,
there's a documented bug that prevents the TransparencyKey from working. See
knowledge base article:
http://support.microsoft.com/default...b;en-us;822495 .

Apr 28 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3006
by: Carsten Klotz | last post by:
Hi, I've set the TransparencyKey of a form to black. That means, all black pixel will be shown transparent within the drawing content of that form. If I set the background to black, I can see the underlying window (ie. Desktop or IE). But when I want to draw with the mouse inside that transparent area, my form/window lost its focus (TopMost=true). Even when I'm just moving the mouse, I can see, that I'm "touching" the underlying content...
2
8571
by: Allan | last post by:
I've been trying to get this to work for days. I have a form which needs to be transparent (only the form background). On the form there are two images (32 bit PNGs) with alpha channel information, in one case the alpha information is used to display a shadow, and the other has a shadow and a few other things. One of these images will change on a random basis (every five minutes or so) and the other is the background for display data. ...
6
4669
by: peter hansen | last post by:
By changing the backgroundimage of a form into a picture and then enable the TransparencyColor you can make a form as a cirkel etc (the form has the same 'form' as the picture has). I have then disabled the FormBorderStyle (None) By doing that I have no border I can click at to drag the form. How do I make the form-area drag-able so that it is possible to click at a random point at the form, hold down the mousebutton and then move the...
5
6103
by: Matthew | last post by:
I have Visual Basic .NET 2003, and wanted to create a form that only shows the contents of a label. The form can't have a title bar or border. It seriously needs to just be the text inside the label. Can this be done? Matthew
40
1985
by: Geoff Jones | last post by:
Hi Can anybody help me with the following? It is driving me crazy!!! I'm trying to produce a non-rectangular form as follows: (1) Produce a bitmap e.g. gif, using paint shop pro 5. (2) The Background color of the bitmap is set to white. (3) Draw a design on the bitmap in a color other than white. (4) Create a windows application.
4
1283
by: Simon Verona | last post by:
I have a class that provides functionality that is around my application. One function it provides is a "PleaseWait" method, which displays a popup please wait form. This works as a pair of functions as follows: Dim _frmPleasewait As frmPleasewait Public Sub PleaseWait(ByVal Text As String) _frmPleasewait = New frmPleaseWait(Text) _frmPleasewait.Show()
3
1004
by: talk2ayan | last post by:
I need to change the opacity of some part of a form (e.g. vertically 1/2)....If i set opacity from property it affects the whole form. Can anyone help me in this regard?
4
1813
by: tommaso.gastaldi | last post by:
I found useful to use transparent controls like: '---------------------------------------------------------------------------------- Public Class UserControlTransp Inherits System.Windows.Forms.UserControl #Region " Windows Form Designer generated code " .... #End Region
9
12839
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How to do this... and eventually i want to modify the control box in the form of ? _ X ... I.e. adding a new button to control box. I need to detect the click events.
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.