If the software is critical, contact the vendor for a 2021+ update that replaces ActiveX with .NET or WebAssembly. Many vendors released “Extended Support” updates in 2021 due to IE deprecation.
For 64-bit Windows: Copy .ocx to C:\Windows\SysWOW64
For 32-bit Windows: Copy to C:\Windows\System32 ocx newactiveexe download 2021
Use PowerShell to register all OCX in a folder: If the software is critical, contact the vendor
Get-ChildItem -Path “C:\OCX_Folder” -Filter *.ocx | ForEach-Object regsvr32 $_.FullName
Declare event in class:
Public Event Progress(ByVal Percent As Integer)
Then raise it in a long-running method:
Public Sub LongTask()
Dim i As Integer
For i = 1 To 100
' Simulate work
DoEvents
RaiseEvent Progress(i)
Next i
End Sub