If you want to use Windows.Media.Capture (UWP) in Winforms, you must use XAML Islands
I had posted a sample in C# (~ same code in VB.NET) in this thread
How do I incorporate web-cam functionality into a VB WinForms app?
WHAT I HAVE:
Visual Basic 2019, .NET 4.6.1, WinForms
MY PROBLEM:
I'm trying the incorporate web-cam functionality into my VB WinForms project. I've read that the CameraCaptureUI class allows one to implement it simply. The problem is, I can't access--using Imports/Add Reference--the Windows namespace, and its various sub-names spaces like Windows.Storage and Windows.Media.Capture. The help says that the Windows.Storage namespace is in the assemblies "windows.dll" and "windows.storage.dll"--but there appears to be no "windows.dll" on my hard drive, and there are several "windows.storage.dll" files--none of which appear to be usable with VS.
Am I missing something?! Please give me an answer ASAP--preferably in VB.NET (although I can convert to that)!
1 answer
Sort by: Most helpful
-
Castorix31 85,956 Reputation points
2020-12-30T16:29:21.65+00:00