Hi Robert,
All our DirectShow filters are written in C, so you will need to reference the C DLL for the Screen Capture filter in Visual Studio. Visual Studio will automatically generate an Interop DLL for you to use in .NET applications. You can find the Screen Capture filter here:
\LEADTOOLS 19\Redist\MM\CDLL\Win32\LMScrCap2.dll
Once you have the Screen Capture filter referenced in Visual Studio, you can use the GetSubObject method to get the filter from the control an programmatically manipulate the properties that way. It looks like you already have this done in your SetScreenCapture method above.
The Screen Capture filter does not have a property to set the resolution/size, but these reference steps could also be done with our Resize filter to change the resolution/size of the video as well:
https://www.leadtools.com/help/leadtools/v19/multimedia/filters/leadvideoresizefilter(2.0)_ui.html
\LEADTOOLS 19\Redist\MM\CDLL\Win32\RequiresLicensing\LMVRsz2.dll
What are you using at the moment to populate your drop down list for the resolution/size?
If you have any further questions or concerns please feel free to contact us back.
Aaron Brasington
Developer Support Engineer
LEAD Technologies, Inc.