Home All Groups Group Topic Archive Search About

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

Author
14 Apr 2006 1:15 PM
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 ?

Author
14 Apr 2006 1:56 PM
Chris
Nimz wrote:
> 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
Author
14 Apr 2006 2:04 PM
OHM ( One Handed Man )
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()


--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net

Show quoteHide quote
"Nimz" <mr.n***@gmail.com> wrote in message
news:1145020512.867885.166500@t31g2000cwb.googlegroups.com...
> 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 ?
>
Author
14 Apr 2006 2:53 PM
Herfried K. Wagner [MVP]
"Nimz" <mr.n***@gmail.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>