Thanks, great job.
Alf
Porting VO Forms to Winform or WPF
-
- Posts: 51
- Joined: Mon Mar 07, 2022 12:34 am
Porting VO Forms to Winform or WPF
Hi Chris,
I think you may be able to help me here. I am just looking at using that Windows forms code generated by the exporter. I have a large VS solution with a bunch of X# and C# projects in it. I only just discovered I can add a WinForms item to an X# project and it creates the same sorts of files as doing it in C#. It will also work in the Forms designer. I can also see that by copying in the forms code created by the exporter, into the corresponding files in the project, I should be able to create WinForms versions of the VOGUI forms I already have. I would then need to, perhaps manually, link up the event routines.
Is that the best way to go about it, or is there some other tools I can use? If this is covered in other documentation or in one of your YouTube videos, just point me in the right direction.
Best regards,
John
I think you may be able to help me here. I am just looking at using that Windows forms code generated by the exporter. I have a large VS solution with a bunch of X# and C# projects in it. I only just discovered I can add a WinForms item to an X# project and it creates the same sorts of files as doing it in C#. It will also work in the Forms designer. I can also see that by copying in the forms code created by the exporter, into the corresponding files in the project, I should be able to create WinForms versions of the VOGUI forms I already have. I would then need to, perhaps manually, link up the event routines.
Is that the best way to go about it, or is there some other tools I can use? If this is covered in other documentation or in one of your YouTube videos, just point me in the right direction.
Best regards,
John
Porting VO Forms to Winform or WPF
Hi John,
This is as far as the automated process goes, it just takes the VO window and creates the equivalent GUI items in WinForms. I agree it's a good starting point, but the bulk of the job will be adjusting the code and event handlers from VO style to WinForms appropriate code. Theoretically, it might be possible to automate this process, too, but I'm afraid this would be a very big side project to start!
This is as far as the automated process goes, it just takes the VO window and creates the equivalent GUI items in WinForms. I agree it's a good starting point, but the bulk of the job will be adjusting the code and event handlers from VO style to WinForms appropriate code. Theoretically, it might be possible to automate this process, too, but I'm afraid this would be a very big side project to start!
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu