Can I use the built-in control in Excel to preview a video stream from a webcam using DirectShow?

There are many sources for receiving a video stream from a webcam into an image box built into a user form.

However, I'm trying to do something a little neat, basically there is a preview of the video stream from the webcam in the control embedded directly in the sheet, and not in a floating user form. I am not sure if this is possible. I would really appreciate any pointers.

+6
source share
1 answer

(Reply from TnTinMn comment - post as a response to deletion from the "No response" queue)

If you can write .Net WinForm UserControl to view the video stream, you should be able to create an ActiveX UserControl that you can use in Excel.

Get Microsoft InteropForms Toolkit 2.1.

Although it was originally intended to use UNet Net in VB6, it works great to write UC for use in Excel.

As a test, I just wrote the one that used Windows Media Player and played the video as a UserControl in a worksheet.

Run VS as an administrator, as he should be able to register the control.

0
source

All Articles