I'm looking for a program reproduces in a picture box the AVI files present within the various files (of course continuous playback and transparent effect including). dll and others, I found one in Visual Basic and it works, but I can not do it Running in VB 10, i have also searched in interenet for several days but without result, do you have a solution?
pablo71@tiscali.it for answers... thank!!!!

Dani AI

Generated

Building on 's suggestion to break the job into smaller pieces: treat this as two distinct problems — (A) extract the AVI data from the DLL/container, and (B) hand that AVI to a player that the .NET runtime can host. For VB 10 (usually VB.NET 2010) on Windows the simplest, most reliable route is to extract the embedded AVI to a temporary file and play that file from a hosted player control. Note that true per‑pixel video alpha is uncommon in AVI containers; achieving a transparent overlay usually requires a renderer that supports alpha (DirectShow VMR9/EVR) or a chroma‑key workflow.

Example (VB.NET): extract an embedded .avi from another assembly, write to temp, then play with a hosted Windows Media Player ActiveX control:

Imports System.IO
Imports System.Reflection

' load the DLL that contains the AVI resource
Dim asm As Assembly = Assembly.LoadFrom("C:\path\to\the.dll")
Dim resName As String = asm.GetManifestResourceNames().FirstOrDefault(Function(n) n.EndsWith(".avi", StringComparison.OrdinalIgnoreCase))
If resName Is Nothing Then Return

Dim tempFile As String = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() & ".avi")
Using rs As Stream = asm.GetManifestResourceStream(resName)
    Using fs As New FileStream(tempFile, FileMode.Create, FileAccess.Write)
        rs.CopyTo(fs)
    End Using
End Using

AxWindowsMediaPlayer1.URL = tempFile
AxWindowsMediaPlayer1.settings.setMode("loop", True)
AxWindowsMediaPlayer1.Ctlcontrols.play()

Troubleshooting and important notes:

  • If the working sample was VB6 or another environment, conversion/adaptation is required — VB6 code won’t just run in VB.NET.
  • Many COM codecs/filters and ActiveX controls are 32‑bit only. Set the project target to x86 if playback fails on a 64‑bit machine.
  • If playback fails, test the saved temp .avi directly in a native player to rule out missing codecs.
  • True transparency is advanced: use DirectShow/VMR9 or render decoded frames into a bitmap with alpha (higher effort).
  • This thread is in the macOS forum: Visual Basic 2010 and Windows Media/DirectShow are Windows technologies and won't run natively on macOS — virtualization or a cross‑platform player binding is required if the target is macOS.

Legal/copyright reminder: extract embedded assets only when permitted.

That's a fairly larget undertaking. So you need to set smaller areas to conquer. How about a media thumbnail tool like:

VB 10? As in VB.Net 2010? That's listed.

As to playing, for most the only players would be Microsoft's own (Visual Basic) media player. And for more adventurous out there some Apple plugin. You have a long list of things you want but are those items implemented in the players for VB? If not you may be spending a few years creating yet another video player. Here I just use WFE and VLC Player. Works great. No code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.