By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,239 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,239 IT Pros & Developers. It's quick & easy.

Microsoft Visual Basic .NET 2003: How-to Demo-Non-Rectangular Forms

P: n/a
I downloaded it from Visual Basic at the Movies but there is a problem.

I set up the following properties of the form...

BackroundImage
TransparencyKey = Color that needs to be transparent
FormBorderStyle = None

And it looks like that TransparencyKey color doesn't work.

I set up a bitmap image with green background and red circle in it but when
I set up green as TransparencyKey and when I run the project the form's
background color is still green and it's not transpaerent like I saw in the
demo.

Why is that? I'm using Visual Studio 2003.

Thanks
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Morx" <cy******@hotmail.com> wrote in message
news:Oo**************@TK2MSFTNGP12.phx.gbl...
I downloaded it from Visual Basic at the Movies but there is a problem.

I set up the following properties of the form...

BackroundImage
TransparencyKey = Color that needs to be transparent
FormBorderStyle = None

And it looks like that TransparencyKey color doesn't work.

I set up a bitmap image with green background and red circle in it but when I set up green as TransparencyKey and when I run the project the form's
background color is still green and it's not transpaerent like I saw in the demo.

Why is that? I'm using Visual Studio 2003.


There's a bug in that it won't work above 24-bit. Is your monitor set at
32-bit?
Nov 21 '05 #2

P: n/a

"Ricky W. Hunt" <rh*****@hotmail.com> wrote in message
news:WSgVc.4348$9d6.1689@attbi_s54...
"Morx" <cy******@hotmail.com> wrote in message
news:Oo**************@TK2MSFTNGP12.phx.gbl...
I downloaded it from Visual Basic at the Movies but there is a problem.

I set up the following properties of the form...

BackroundImage
TransparencyKey = Color that needs to be transparent
FormBorderStyle = None

And it looks like that TransparencyKey color doesn't work.

I set up a bitmap image with green background and red circle in it but

when
I set up green as TransparencyKey and when I run the project the form's
background color is still green and it's not transpaerent like I saw in

the
demo.

Why is that? I'm using Visual Studio 2003.


There's a bug in that it won't work above 24-bit. Is your monitor set at
32-bit?


Yes, it's 32-bit. I tried it with 16b-bit and it works but that doesn't
help.

Is there a fix for that because I noticed that it doesn't work in VS 2005
BETA 1 also.
Nov 21 '05 #3

P: n/a
Ricky,

Bug?

I think more a disadvantage because it is known and even described.

(and not a little one, because how can you tell that to a customer)

:-)

Cor
Nov 21 '05 #4

P: n/a
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Ricky,

Bug?

I think more a disadvantage because it is known and even described.

(and not a little one, because how can you tell that to a customer)


I only happened to know about it because, since I'm just learning VB.NET, I
try any new code I happen to come across (this might have been from
something you posted - using text as a form possibly?). I went to all the
trouble of doing it only to find out it won't work above 24-bit (my card
only offers 16 and 32 bit so I'm always at 32-bit). I'd call that a SERIOUS
PROBLEM. I was hoping it was just a bug that would be resolved with the next
version. Sorry to hear it sounds like it won't be.
Nov 21 '05 #5

P: n/a
* "Morx" <cy******@hotmail.com> scripsit:
I set up the following properties of the form...

BackroundImage
TransparencyKey = Color that needs to be transparent
FormBorderStyle = None

And it looks like that TransparencyKey color doesn't work.


Use a region instead:

<URL:http://www.bobpowell.net/region_from_bitmap.htm>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.