custom transparent forms

J

Jon Slaughter

I was wondering if its possible to create a form that allows for
non-transparent controls and regions?

i.e., when you set the transparency for a form it then applies to all
components of that form. I would like to in some way, say, have parts of the
form transparent while others are not(or different levels).

Is this possible with .Net forms or do I have to customize it? (effectively
rewriting the .NET forms framework)?

Also, I was wondering how exactly .NET does the transparency? How do they
get the applications behind the form to paint? I was thinking that one could
query all the windows and then ask them to repaint themselfs and then draw
the controls with alpha channels and stuff but I'm not sure if this is the
best method?

Actually I want to have non-rectangular regions and controls and doing this
might get kinda complicated or have performance issues.


Any ideas?

Thanks,
Jon
 
J

Jon Slaughter

Also I was thinking about non-rectangular client regions too. This shouldn't
be to hard to implement but I'm a little unsure how it would fit into the
standard .NET framework if I extended a forms class.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi again,


If you google irregular forms c# you will find plenty of examples ( I sent u
the first )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top