How to show a form of c# in VB.Net from ?

  • Thread starter Thread starter Nimz
  • Start date Start date
N

Nimz

Hello,
this is antenio,
i'm working on a vb.net project. i wanted to ask that is it possible to
show a c# form in vb.net ?
if yes then how ?
 
Nimz said:
Hello,
this is antenio,
i'm working on a vb.net project. i wanted to ask that is it possible to
show a c# form in vb.net ?
if yes then how ?

Yes, just reference the dll that contains the class and access treat it
liek a normal class. It is not possible to have a .cs file in the same
vb project.

Chris
 
Yes it is possible.

You need to add a new c# libary or reference an exisiting one for example,
and then compile your solution and add an imports at the top of your calling
code to the referenced library containing the c# form, after which you can .
.. .

Dim myCsharpForm as new classLibrary.YourFormName
myCsharpForm.show()
 
Nimz said:
i'm working on a vb.net project. i wanted to ask that is it possible to
show a c# form in vb.net ?
if yes then how ?

Yes, simply add a reference to the C# project or DLL file to your project,
import the namespace the form resides in and use the forms the way you are
using other forms.
 
Back
Top