General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Initialize C# Windows Form project with XMAX control
Tagged: C#, Getting Started, XMAX
SebastianB November 17, 2020 at 6:48 am
Initialize C# Windows Form project with XMAX controlNovember 17, 2020 at 6:48 amParticipants 4Replies 4Last Activity 2 years, 4 months ago
Dear Sir or Madam,
Currently I am trying to initialize a C# Windows Forms application with an embedded XMAX 14 control in Visual Studio 2019 (Community Edition).
Unfortunately, the very first step described in the XMetaL Programmers Guide (https://xmetal.com/webhelp/en/xmetaldeveloper/pg/12.0/pg.html#Add%20XMetaL%20XMAX%20to%20the%20toolbox) does not seem to work for me. When trying to add XMAX to the toolbox, there is no entry for XMAX in the COM components tab. When I click on Browse in the COM components tab and select XMControl.dll from C:\Program Files\XMetaL 14.0\XMAX\ explicitely there is an error dialog stating that the Self-registration failed.
I tried to install a considerably older XMAX version (6.0.2). For that installation an XMAX entry exists in the COM components as can be seen in the screenshot. When I select that entry there is a warning message that the control is not enabled, as .NET Framework requirements are not met. Deinstalling and reinstalling version 14 does not help.
I’d be much obliged if you could give me some hints on how to initialize a C# project that uses the control from XMAX 14. Are there further restrictions concerning .NET Framework that need too be considered?nhu1 November 19, 2020 at 10:52 am
Reply to: Initialize C# Windows Form project with XMAX controlNovember 19, 2020 at 10:52 am
In Control Panel -> Programs and Features, do you see an entry of XMAX 14?
Ning HuSebastianB November 20, 2020 at 12:21 am
Reply to: Initialize C# Windows Form project with XMAX controlNovember 20, 2020 at 12:21 am
Yes, XMetaL XMAX (x64) Version 14.0.0231 is listed there. I am sure that XMAX control itself is correctly installed and working as we also have a Java program at our company that embeds the XMAX control, which is working.
In Visual Studio, however, the XMAX control does not show in the list of COM components.
Sebastiannhu1 November 20, 2020 at 10:36 pm
Reply to: Initialize C# Windows Form project with XMAX controlNovember 20, 2020 at 10:36 pm
Visual Studio is a 32-bit app. So only 32-bit COM component can be displayed/added to ToolBox.
You can try the 32-bit XMAX installer.
NingSebastianB November 23, 2020 at 10:10 am
Reply to: Initialize C# Windows Form project with XMAX controlNovember 23, 2020 at 10:10 am
Thank you very much for your suggestion. After installing XMAX 15 32-bit I could add the XMAX component to the toolbox and use it in a form.
- You must be logged in to reply to this topic.