Results 1 to 6 of 6

Thread: [RESOLVED] How to unload WMP in custom ActiveX Control?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2018
    Posts
    16

    Resolved [RESOLVED] How to unload WMP in custom ActiveX Control?

    I'm using VB5.

    I've tried some methods I've seen on here and other places for unloading the Windows Media Player ActiveX control, (specifically the newer one, "wmp.dll"), but those methods seem to only work if I have it embedded in a Standard EXE project's form. My project is an ActiveX Control, (specifically an OCX), and unloading it from my control produces a runtime error and a crash.

    What is the proper way to remove/unload Windows Media Player, (for video playback specifically), in an ActiveX OCX Control?

    I've tried stopping the video and making the URL property reference a vbNullString, and after that I tried both:
    Code:
    Unload WindowsMediaPlayer
    Set WindowsMediaPlayer = Nothing
    And just this by itself:
    Code:
    Unload WindowsMediaPlayer
    Both produce the same runtime error and crash.
    Any help or suggestions are greatly appreciated.

    (Why has no one replied to me here on any of my topics yet?)

    Thanks!
    Samuel
    Last edited by Samuel Venable; Feb 11th, 2018 at 12:14 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width