Transparent Control vs Transparent Form

M

marinindextrader

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
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) scripsit:
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...

How do you make the control transparent?
 

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