开发者

VB .frm files, can they be imported into a C# project?

开发者 https://www.devze.com 2022-12-16 10:14 出处:网络
I am supposed to be updating a piece of software for someone.Originally written in VB 6 I want to import it into a .net c# project.My question is, I don\'t want to have to lay out all the forms again

I am supposed to be updating a piece of software for someone. Originally written in VB 6 I want to import it into a .net c# project. My question is, I don't want to have to lay out all the forms again and I am wondering if, or how, I could import them into c# project. They originally come with the .frm extension and c# forms are .cs开发者_开发知识库. I tried 'add existing item' to the project but obviously that didn't work, and I tried a couple of other things. Is there a way of importing them that would work? I just need the layout, not worried about the underlying code or anything as this will all be re-written.

Thanks, R.


You can utilize the VB upgrade wizard, but that will only get you to VB.NET (potentially as there as some things that cannot be upgraded). Or you can compile your VB6 app to a COM dll... then call the COM dll via interop.


As already mentioned, you can migrate to VB.NET first. You can copy and paste controls from one project's form to another's.

0

精彩评论

暂无评论...
验证码 换一张
取 消