Windows Media Player Control Drag and Drop

Tech-Archive recommends: Fix windows errors by optimizing your registry



I enable the AllowDrop property but there is no DragDrop or DragOver events
for the WindowsMediaPlayer control? I want to be able to drag a media file
onto the control and set the URL property to the filename so it will play.

What I did in VB6 was create a image control over the top of the media
player control and because it was transparent without an image assinged I
could use the image control dragdrop event and drag files over it and assign
the filename to the URL property of the MediaPlayer. This worked great.
Because there are no native transparent controls in VB.NET this doesn't work.
I have tried working with the
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True) but I could
not get it to work. Beside I don't see why the control doesn't have
dragdrop events?

Jeff

.



Relevant Pages

  • .net 2.0 Richtextbox autodragdrop how to make the control respond to Ctrl key for move copy?
    ... ..net 2.0 richtextbox autodragdrop how to make the control respond to ... when I first use the control it gives a no dragdrop allowed cursur ... changes when ctrl key held or not? ...
    (microsoft.public.dotnet.general)
  • DragDrop / interop
    ... I want to set up some kind of DragDrop between a C# control and an OCX ... running in interop, ... DragDrop event is not valid on this ActiveX control"; ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: VFP 9SP2 - control verschieben
    ... "Verschieben" bedeutet in diesem Fall ja nichts anderes, als das Control aus dem einen Container zu entfernen ) und dem anderen Container ein Control hinzuzufügen bzw. ..NewObject). ... Die verdeckten Seiten, oder genauer genommen, die Reiter eines Pageframes reagieren nicht auf einen DragDrop Event. ...
    (microsoft.public.de.fox)
  • RE: WindowsMediaPlayer Control Drag and Drop
    ... I created a Image control over the top of the ... WindowsMediaPlayer control and because it is transparent it isn't seen. ... fires when I drag a media file over the control? ... Does anyone have experience getting drag and drop working with the Media ...
    (microsoft.public.vb.controls)
  • Re: Drag a file(path) from an Access Form into another app?
    ... Only thing is I'm not using a .Listview control. ... picturebox, image, and textbox, all support OLE drag and drop. ... Private Sub ListView0_MouseDown(ByVal Button As Integer, ...
    (microsoft.public.access.formscoding)