How Can We Help?
Error “toolbox item cannot be enumerated dynamically” when trying to add the VidGrab control to a NET 8.0 or 9.0 application’s toolbox
The WinForms/WPF Toolbox no longer supports automatic discovery of controls for .NET 8, the dynamic control discovery is supported only by the NET Framework 4.x.
Proceed as follows:
– Project -> Add Reference -> Browse -> select the VideoGrabberNET.dll for NET 8
– open the form in design view and add the following code, e.g.:
using VidGrab;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
var vg = new VideoGrabber();
vg.Dock = DockStyle.Fill;
this.Controls.Add(vg);
}
}