Another possibility is to do a manual edit to the .rc file so that the ActiveX control is not loaded in the dialog editor but is still included when building.
Surround the related resource statements for conditional compilation --
And the result --
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I upgraded a legacy MFC project to vs2022. One dialog in this project contains Microsoft Chart Control. So I copy the file "MSCHRT20.OCX" to "Windows\SysWOW64" folder and regist it using regsvr32 command. After thar, I opened the project and built it. There is no error. Then I ran the application built from the project. It can show the chart normally. But if I want to open the dialog in vs2022's design view, it disply the error info indicading the control is not registered instead of displying controls in that dialog. I found there was no Microsoft Chart Control in the list of COM components of toolbox, so I tryed to import the control by browsing and selecting the file "MSCHRT20.OCX". But it also report error that regist the control failed.
Another possibility is to do a manual edit to the .rc file so that the ActiveX control is not loaded in the dialog editor but is still included when building.
Surround the related resource statements for conditional compilation --
And the result --
I expect the reason that you cannot instantiate this old 32-bit .OCX in the dialogue editor is because Visual Studio 2022 is a 64-bit application.