This is a migrated thread and some comments may be shown as answers.

Convert from Visual Basic to C#

1 Answer 1610 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gone2TheDogs
Top achievements
Rank 1
Iron
Veteran
Gone2TheDogs asked on 13 Nov 2020, 02:56 PM

We have been slowly moving away from an antiquated system, "Unidata". We have just completed converting the entire ERP system to Winforms with Visual Basic (interface only. it still is pulling data from Unidata). Next year, we will begin converting from Unidata database to MS SQL. In the future, we will move to C#. I proposed to my team to NOT wait, but to use C# when we convert to MS SQL (at the very least all db calls should be in C#). 

We are using VS 2015, .Net 4.7.2, and Telerik WinForms 2019.1.117.40

Before we start the conversion, I would like to move to VS 2019, .Net 5, and the latest Telerik WinForms version 

Here is my question: 

Is there a recommended conversion tool when moving from Visual Basic to C# that works best for Telerik Winforms?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Nov 2020, 08:08 AM
Hello, Bob,   

Converting from Visual Basic to C# is more like a general programming question and the Telerik UI for WinForms is not directly related to this process. Actually, it is not expected to affect the Telerik controls in any specific manner that is different than the standard WinForms controls.

You can use our online free Telerik Code Converter for converting from C# to VB and vice versa: https://converter.telerik.com/ 

The main point of the conversion process here is jumping from .NET Framework 4.7.2 to .NET 5. I would recommend you to have a look at the following article (section "Porting from .NET Framework") which is quite useful on this topic: https://www.codemag.com/article/2010122?utm_source=twitter&utm_medium=social-owned&utm_campaign=sm-articles   

Please have in mind that since R2 2020 Telerik UI for WinForms suite provides tooling in Visual Studio 2019, via our Visual Studio Extensions, that will convert client projects that use .NET Framework 4.8 (or lower) into .NET Core projects to ease out the migration. It is based on the Try-Convert tool and the .NET Portability Analyzer that Microsoft offers to help .NET developers port their projects to .NET Core. Please have in mind that even though the conversion may be successful, we don't guarantee that the project will be compiled and you may need to fine-tune the output: https://docs.telerik.com/devtools/winforms/core/net-core-project-converter 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Gone2TheDogs
Top achievements
Rank 1
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or