Hi,
I am making an awesome media player that has rounded corners. What code can I use or what FREE activex control can I use to make the form transparent, except for the areas that are taken up by the media player?
Printable View
Hi,
I am making an awesome media player that has rounded corners. What code can I use or what FREE activex control can I use to make the form transparent, except for the areas that are taken up by the media player?
Search the forum for transparent forms there are tones of example using the setLayeredWindow API.Quote:
Originally Posted by TCanuck42
I searched but found nothing that helped me. I need code that makes a form transparent, but not the objects and controls. Please respond asap.
Try this thread which should provide a solution using the SetLayeredWindowAttributes API. Only works on Win 2000/XP though. In that thread I posted a link to an excellent two part tutorial for using this API.
I went to the tutorial, and i copied and pasted the code and it didnt work. I am fairly new to Visual Basic, so can you please help explain how I do it?
Are you using Windows XP?
Yes
Look at this code:
It uses Alpha-Blending. Just move the slider!
Thanks, but that isn't wut im looking for. I want to make unused parts of the form transparent.
Maybe this then?:
On the right track, but i need the form to be transparent. I have rounded corners on my app, and i want all the area not being used to be invisible.
Try this one. Circular form
Edit uploaded a better one using GDI to draw the circle.
@Dan hope i've got it right with no memory leaks this time :).
@Shuja, used your great form move code.
That just makes a circle. Lets say I have a transparent picture of a trapezoid. How can I make the form diappear except for the part with the trapizoid on it?
You mean showing the desktop?
yes