Home All Groups Group Topic Archive Search About

label transperent problem

Author
27 Dec 2006 10:33 AM
imonline
Hi,
      I want to put a label control on the windows media player and I
want it to be transperent. But it is not working. I even tried making
windows media player parent of the label.

       Please let me know what am I doing wrong.


Thanks,
Nis

Author
27 Dec 2006 10:59 AM
Cor Ligthert [MVP]
Imonline,

To what you want it to be transparant, because it is transparant to your
form.

Most people show some code how they did it by the way, in that case maybe
some people see the trouble if that is there,

Cor

Show quoteHide quote
"imonline" <nis***@gmail.com> schreef in bericht
news:1167215626.272301.32770@h40g2000cwb.googlegroups.com...
> Hi,
>      I want to put a label control on the windows media player and I
> want it to be transperent. But it is not working. I even tried making
> windows media player parent of the label.
>
>       Please let me know what am I doing wrong.
>
>
> Thanks,
> Nis
>
Author
27 Dec 2006 11:06 AM
imonline
Hi Cor,
Thanks for the reply. I want it to be transperant to the windows media
player. The code I am using is as under:
        Dim IMWMedia As WMPLib.IWMPMedia
        IMWMedia = WindowsMediaPlayer1.newMedia(Application.StartupPath
& "\smooth.wmv")
        'AxWindowsMediaPlayer1.settings.autoStart = True
        WindowsMediaPlayer1.currentMedia = IMWMedia
        Me.Label1.Parent = Me.WindowsMediaPlayer1
        Me.Label1.ForeColor = Color.Black
        Me.Label1.Text = "yo"

Please let me know what am I doing wrong.

Thanks,
Nis
Cor Ligthert [MVP] wrote:
Show quoteHide quote
> Imonline,
>
> To what you want it to be transparant, because it is transparant to your
> form.
>
> Most people show some code how they did it by the way, in that case maybe
> some people see the trouble if that is there,
>
> Cor
>
> "imonline" <nis***@gmail.com> schreef in bericht
> news:1167215626.272301.32770@h40g2000cwb.googlegroups.com...
> > Hi,
> >      I want to put a label control on the windows media player and I
> > want it to be transperent. But it is not working. I even tried making
> > windows media player parent of the label.
> >
> >       Please let me know what am I doing wrong.
> >
> >
> > Thanks,
> > Nis
> >
Author
27 Dec 2006 11:17 AM
Cor Ligthert [MVP]
Imonline,

I am sorry, I don't know the answer on your question, but it is hard to
search as well.

If Herfried or Tom don't know the answer on this one, you probably can
forget it.
(This to show others if they have the answer not to be shy).

Cor

Show quoteHide quote
"imonline" <nis***@gmail.com> schreef in bericht
news:1167217570.436067.206660@48g2000cwx.googlegroups.com...
> Hi Cor,
> Thanks for the reply. I want it to be transperant to the windows media
> player. The code I am using is as under:
> Dim IMWMedia As WMPLib.IWMPMedia
>        IMWMedia = WindowsMediaPlayer1.newMedia(Application.StartupPath
> & "\smooth.wmv")
> 'AxWindowsMediaPlayer1.settings.autoStart = True
> WindowsMediaPlayer1.currentMedia = IMWMedia
>        Me.Label1.Parent = Me.WindowsMediaPlayer1
>        Me.Label1.ForeColor = Color.Black
>        Me.Label1.Text = "yo"
>
> Please let me know what am I doing wrong.
>
> Thanks,
> Nis
> Cor Ligthert [MVP] wrote:
>> Imonline,
>>
>> To what you want it to be transparant, because it is transparant to your
>> form.
>>
>> Most people show some code how they did it by the way, in that case maybe
>> some people see the trouble if that is there,
>>
>> Cor
>>
>> "imonline" <nis***@gmail.com> schreef in bericht
>> news:1167215626.272301.32770@h40g2000cwb.googlegroups.com...
>> > Hi,
>> >      I want to put a label control on the windows media player and I
>> > want it to be transperent. But it is not working. I even tried making
>> > windows media player parent of the label.
>> >
>> >       Please let me know what am I doing wrong.
>> >
>> >
>> > Thanks,
>> > Nis
>> >
>
Author
27 Dec 2006 2:51 PM
vbnetdev
in simplest terms the color of transparency is determined by the form it is
on.

Add your form, make it black (web) backcolor. add your WMP control. add your
label on top of the WMP, setting its backcolor to transparent.and forecolor
to white. Let me know what you get.

Show quoteHide quote
"imonline" <nis***@gmail.com> wrote in message
news:1167215626.272301.32770@h40g2000cwb.googlegroups.com...
> Hi,
>      I want to put a label control on the windows media player and I
> want it to be transperent. But it is not working. I even tried making
> windows media player parent of the label.
>
>       Please let me know what am I doing wrong.
>
>
> Thanks,
> Nis
>