I have two distinct projects, one with just one form in C #, can I embed the form in my project in VB.NET?
I have two distinct projects, one with just one form in C #, can I embed the form in my project in VB.NET?
There are two options:
To open the C # form in VB.NET, if the two projects are in the same solution:
Dim csharpfrm As New ProjetoCSharp.Form1
csharpfrm.Show()
I'm currently missing Visual Studio, but to add the reference do the following: In the project with the C # form, click Project > options, and change the project type to dynamic library.
Compile the project (Build, build solution, I do not know how it is in Portuguese).
Next, in the VB project, in Solution Explorer, right-click the project, add, references, and find the .dll file in the C # project folder, bin \ release subfolder.
Create a project in the same solution in C # and another one in VB, in C # it puts your project, when you use this C # project in VB, reference it in your project.