I've created a net 6 winforms project, I've added the nuget packages for Infragistics.WinForms and Infragistics.WinForms.Editors (22.1.71) from our private feed. When I open up the designer for a blank form I don't see any infragistics controls in the toolbox. Any suggestions what I might be doing wrong?
This is my project file:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net6.0-windows</TargetFramework> <StartupObject>Sub Main</StartupObject> <UseWindowsForms>true</UseWindowsForms> <MyType>WindowsForms</MyType> </PropertyGroup> <ItemGroup> <Import Include="System.Data" /> <Import Include="System.Drawing" /> <Import Include="System.Windows.Forms" /> </ItemGroup> <ItemGroup> <PackageReference Include="Infragistics.WinForms" Version="22.1.71" /> <PackageReference Include="Infragistics.WinForms.Editors" Version="22.1.71" /> </ItemGroup> <ItemGroup> <Compile Update="My Project\Application.Designer.vb"> <DesignTime>True</DesignTime> <AutoGen>True</AutoGen> <DependentUpon>Application.myapp</DependentUpon> </Compile> </ItemGroup> <ItemGroup> <None Update="My Project\Application.myapp"> <Generator>MyApplicationCodeGenerator</Generator> <LastGenOutput>Application.Designer.vb</LastGenOutput> </None> </ItemGroup> </Project>
Also noticed the following under Windows Forms Output:
[12:10:02.419533] warn: [NetFormsTest]: Encountered an additional TypeRoutingDefinition for 'Infragistics.Win.UltraActivityIndicator.UltraActivityIndicatorDesigner'[12:10:02.419533] warn: [NetFormsTest]: Encountered an additional TypeRoutingDefinition for 'Infragistics.Win.UltraWinEditors.UltraPictureBoxDesigner'
Hello Kevin,In order for the Infragistics Windows Forms controls to show in the toolbox when using a .NET Core 3.1/.NET 5/.NET 6 project, you need to first include the NuGet package for the particular control(s) you are trying to use, as our support for them is done through NuGet. For more information on setting up the Infragistics NuGet feed and which controls exist under which packages, I would recommend taking a look at the following documentation:NuGet Feeds: https://es.infragistics.com/help/winforms/nuget-feedsNuGet Packages: https://es.infragistics.com/help/winforms/nuget-packagesWith the above said, by adding the NuGet packages to your project from the NuGet Package Manager (Check "Using packages in your application" in the NuGet Feeds link), this will allow you to see the controls in the toolbox.Please let me know if you have any questions.Regards,Ivan Kitanov
Hi Ivan,
I've already added the two packages mentioned in the original query? I'd assume the Editors package should add text boxes, combos, etc to the toolbox? Still nothing showing though
Kevin
Hello Kevin,
The Infragistics.WinForms.Editors package should add the editor controls, could you please check if you have completed the setup that is provided in the NuGet Feeds documentation?
Additionally, could you share some more details regarding the Environment you are using?
I am also attaching a sample that I have tested with Visual Studio 2022 version 17.0.5 64-bit. The sample adds the Editors packages and the editors appear with both 22.1.30 and 22.1.71 and with both versions I am able to install the NuGet packages and see the controls that correspond to them in the toolbox as well as interacting in the designer.
Please test the sample on your side and let me know if the controls appear in the toolbox there.
Looking forward to hearing from you.
Regards, Ivan Kitanov
DotNEt6.zip
I've got a set of steps to demonstrate the problem.
So it seems you need a C# project which includes the packages to be present in your solution for the tools to be available in a VB project in that solution
For reference, my environment and feeds are as follows:
Any update on this issue? We're making use of several fixes in the more recent Visual Studio versions so downgrading would be a big step back.
Cavin
Edit: disregard, it's working fine for me (Visual Studio 17.4.3 and Infragistics WinForms 22.1.33). My problem was that I had the "Automatically Populate Toolbox" setting (Tools > Options > Windows Forms Designer > General) set to False. Sorry for the confusion!
I’ve tried reproducing your issue, however once I added the NuGet packages everything worked as expected. I then upgraded my Visual Studio to version 17.3.0 and was able to reproduce the issue.
For now, I recommend you downgrading your VS version, since the older versions does not reproduce this issue. I will investigate what the reason for this issue might be and will contact you as soon as I have more information.