473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

custom transparent forms

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
Oct 7 '06 #1
3 1780

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.
Oct 7 '06 #2
Hi,

Take a look at this: http://www.thescarms.com/dotnet/IrregularForm.asp
--
Ignacio Machin
machin AT laceupsolutions.com

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:12*************@corp.supernews.com...
>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

Oct 7 '06 #3
Hi again,
If you google irregular forms c# you will find plenty of examples ( I sent u
the first )

--
Ignacio Machin
machin AT laceupsolutions.com
"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:12*************@corp.supernews.com...
>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

Oct 7 '06 #4

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

Similar topics

0
by: Diego Devesa | last post by:
Hi, I'm using C# with Visual Studio .NET 2003. In my project, I have a class library with some custom windows forms controls. The namespace for these controls is "WinMar.GUI". If I try to...
1
by: SJM | last post by:
I have a reporting database that has a series of pre-defined Pivot Table screens. What I would like to do is to enable users to be able to save their own configurations. I found 2 ways of doing...
5
by: 2003et | last post by:
How To Create Transparent Windows Controls? Thanks
3
by: °Ë´óɽÈË | last post by:
HI, I create a custom transparent control, set the style is ControlStyles.DoubleBuffer, It display black background. How to create a double buffer transparent control?
1
by: Timothy | last post by:
Hi everyone, I have a question that I hope can be answered. Is there a way to create a borderless form, that has no backcolor (transparent) that has a label (with no backcolor) that is showing?...
3
by: JJ | last post by:
I remember reading somewhere that transparent forms will not display correctly on some systems. The Microsoft help says the about the opacity setting: "Windows 2000, Windows Server 2003 family...
0
by: zyberboy | last post by:
I am a beginner in programming(c#),and this is my first post in this forum. I want to know how to create custom shaped windows form in vs2005 express edition. I was able to create a oval shaped form...
2
by: =?Utf-8?B?SmFtZXM=?= | last post by:
I've managed to have my c++ CWinFormsDialog<...class handle a standard click event from my c# code as in: http://msdn2.microsoft.com/en-us/library/af8w7d7d(VS.80).aspx Is it possible to handle...
0
by: James Jenkins | last post by:
Hi, I have created a custom transparent control that I need to late bind multiple times and add to a PictureBox control. I am doing this all ok but with a problem. The cpu usage goes sky high when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.