PDA

Click to See Complete Forum and Search --> : Transparent form


keetsh
Aug 3rd, 1999, 02:34 PM
My problem is the following one:

I've made a .gif picture with a transparent background and I want to insert it to an image box. 'till now, no problem, the image box background is transparent. But now, I want to set to transparent the Form, and I need some help please.

Thanx.

Shrog
Aug 4th, 1999, 04:16 PM
This is not really all that easy. Making a transparent form is easy enough, but what you will need is to make only part of the form transparent - the part that you do not want to see. The part that you want to see must not be made transparent.

This means that you must change the shape of the form to be the same as the outline of your image. Here are some example programs from Vb-Helper:

<a href="http://www.vb-helper.com/Howto/glassfrm.zip">Make a form with a transparent background</a>
<a href="http://www.vb-helper.com/Howto/winhole.zip">Make a form with a hole in it</a>
<a href="http://www.vb-helper.com/Howto/recthole.zip">Make a form with a rectangular hole in it</a>
<a href="http://www.vb-helper.com/Howto/polyform.zip">Create a non-rectangular polygon form</a>

This is probably not exactly what you want, but it will give you a good understanding of how transparent forms and window regions work.

Hope this helps. Good luck!

keetsh
Aug 7th, 1999, 02:24 AM
Thanks a lot, I've found a new way to finish my work! tnx!

keetsh