469,920 Members | 2,215 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,920 developers. It's quick & easy.

Transparent Control Library

I understand that MS made their controls annoyingly difficult to modify (for
example transparency on a listbox, tab control, treeview etc) to ensure they
didn't torpedo the third party control library industry (or is this just an
excuse to fob us off with controls that are difficult to extend?).

Therefore could anyone tell me of a company that offers decent transparent
controls?
Nov 17 '05 #1
2 6556
>I understand that MS made their controls annoyingly difficult to modify
(for
example transparency on a listbox, tab control, treeview etc) to ensure
they
didn't torpedo the third party control library industry (or is this just
an
excuse to fob us off with controls that are difficult to extend?).
The System.Windows.Form class has a property called "TransparencyKey" which
is a System.Color. When any child control of the Form has a BackColor that
is the same as the TransparencyKey, it becomes transparent.
Therefore could anyone tell me of a company that offers decent transparent
controls?
Microsoft?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Simon Tamman {Uchiha Jax}"
<i_**********************************@NOSPAMhotmai l.com> wrote in message
news:x8******************@newsfe6-win.ntli.net...I understand that MS made their controls annoyingly difficult to modify
(for
example transparency on a listbox, tab control, treeview etc) to ensure
they
didn't torpedo the third party control library industry (or is this just
an
excuse to fob us off with controls that are difficult to extend?).

Therefore could anyone tell me of a company that offers decent transparent
controls?

Nov 17 '05 #2
Truly transparent controls are very difficult to create because you have to
get the parent to draw it'd background and foreground before drawing the
control itself.

MS cheat by getting the parent to draw it's background onto the
pre-transformed Graphics of the control which implements partial
transparency.

The "real" transparency seen in some windows is implemented by the
LayeredWindow API, Form opacity is an example of this, but windows that use
the LayeredWindow API must be toplevel windows.

For an example of better, but not perfect, transparency see Windows Forms
Tips and Tricks.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Simon Tamman {Uchiha Jax}"
<i_**********************************@NOSPAMhotmai l.com> wrote in message
news:x8******************@newsfe6-win.ntli.net...
I understand that MS made their controls annoyingly difficult to modify
(for
example transparency on a listbox, tab control, treeview etc) to ensure
they
didn't torpedo the third party control library industry (or is this just
an
excuse to fob us off with controls that are difficult to extend?).

Therefore could anyone tell me of a company that offers decent transparent
controls?

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by 八大山人 | last post: by
3 posts views Thread by 八大山人 | last post: by
reply views Thread by Willie jan | last post: by
2 posts views Thread by Iwan Budihalim | last post: by
reply views Thread by atif | last post: by
1 post views Thread by Mihai Velicu | last post: by
1 post views Thread by John Dinning | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.