Hi Experts..
I want to use the TS controls in Visual Studio 2022 .NET 6.0
I added the "NationalInstruments.TestStand.API -Version 22.0.0-dev.9" package correctly via NuGet. and then a list of controls “UI.AxControls” appears correctly in the toolbox. However, when I place one of these controls in the MainForm, the application crashes and the form does not display properly. And I got this msg when I run the app : (System.Runtime.Serialization.SerializationException: 'Unable to load type System.Windows.Forms.State required for deserialization.')
Additionally, I observed that the resource file associated with this form is not generating the correct parameters. For example, if I place the "axApplicationMgr" control in the form, the data generated in the resource file will be:
- Name: axApplicationMgr.OcxState
- Type: (Nothing/null)
- Value: (Nothing/null)
However, what I am expecting to obtain is something like this:
- Name: axApplicationMgr.OcxState
- Type: System.Windows.Forms.AxHost+State
- Value: (Value cannot be displayed)
Is there anyone who can help me with this?