label transperent problem

  • Thread starter Thread starter imonline
  • Start date Start date
I

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
 
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
 
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,
 
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
 
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.
 
Back
Top