Transparent Control vs Transparent Form

Transparent Control vs Transparent Form

Post by marinindex » Sun, 19 Oct 2003 02:09:47


Transparent Controls arent or so it seems. If I create a transparent
user control in C# NET and then use SetParent Win32 API call to attach
it to a another window, I cannot click through the transparent
control...

But if I make a transparent form...and use more API calls to keep it
on top and over the form its theoretically attached to...I can click
through it to the underlying controls...

Why is this?

What is the purpose of a transparent control if you cant click
through?

But I think...

Any suggestions would be appreciated on how I can get my transparent
control that overlays the entire client rect of its parent form, to
stop processing messages where it is transparent, and only responded
to events of its children...

What I need is a pure transparent container, that has an hWnd...that
can host controls, and can be drawn on....

Scott
 
 
 

Transparent Control vs Transparent Form

Post by hirf-spam- » Sun, 19 Oct 2003 08:58:36

* XXXX@XXXXX.COM scripsit:

How do you make the control transparent?

--
Herfried K. Wagner
MVP VB Classic, VB.NET << http://www.yqcomputer.com/ ;>

 
 
 

Transparent Control vs Transparent Form

Post by Lloyd Dupo » Mon, 20 Oct 2003 00:43:34

transparent color for background & a SetStyle() call.

"Herfried K. Wagner [MVP]" < XXXX@XXXXX.COM > a rit dans le