Since we’re offering NuGet packages, adding ILNumerics to Visual Studio has become a quite convenient task: It’s easy to use the ILNumerics math library for own projects in .NET. However, from time to time users have problems adding the ILNumerics controls to their Visual Toolbox Window.
That’s what a post on Stack Overflow from earlier this year was about: A developer who wanted to use our C# math library for 3d visualizations and simulations wasn’t able to access the ILNumerics controls. “How can I locate those?”, he was wondering. “Do I have to make some changes to my VS?”
Adding ILNumerics Controls to the Visual Studio Toolbox manually
If the ILNumerics math library is installed to a project, normally the ILNumerics controls are automatically listed in the Visual Studio toolbox. However, if that’s not the case there’s a way to a add them manually: After clicking right onto the toolbox, you can select “Choose Item”. The dialog allows you to select the assambly to load the controls from – that’s it! If you’re using NuGet, the .dll can be found in your project folder, “packages/ILNumericsX.X.X/lib”.
However, if that doesn’t work straightaway, it often helps to clear the toolbox from any copies of custom controls before – simply right-click it and choose “Reset Toolbox”.