Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to use VB.NET forms in a C# project?

Status
Not open for further replies.

DayLaborer

Programmer
Jan 3, 2006
347
US
Someone in my team at work designed a mock-up of an app in VB.NET. The decision has been made to implement the project in C#. Is it possible to use the VB.NET forms in the C# solution?

If so, how?

Thanks,
Eliezer
 
forms" ?
You mean windows or web - forms ?

If it is a web project, you can add a new webpage and specify the language (VB or C#).
If it is a windows project, then try to create it as a dll and add its reference to the vb.net project you have. Else, compile it and view it with a reflector e.g. roetz .net assembly disassembler. The methods will be in C#.


Hope those help
 
you can right click on your project and select "Add an Existing Item" you may have to change some code around on each forms code behind. it may be more trouble then it's worth.

 
TipGiver,

Thanks for your reply. It's a Windows app.

We don't even need the code behind (the code is almost not there - it's a mock-up) - we just want to use the forms (i.e. with a bizillion controls lined up correctly to the pixel). What's the simplist way to do this?

Thanks!
 
Hello.

You will get better answers in the right forum.
. VB.NET -> forum796
. C#.NET -> forum732

Consider dvannoy's suggestion
 
There are many converters are available either shareware or free tools to convert vb.net to c#. You can use those tools to convert the Winforms and code. Just try Google for 'VB.NET to C# converter'.

Sharing the best from my side...

--Prashant--
 
>>We don't even need the code behind (the code is almost not there - it's a mock-up) - we just want to use the forms (i.e. with a bizillion controls lined up correctly to the pixel). What's the simplist way to do this?


you are looking for a way to convert a windows form into a web form???

Known is handfull, Unknown is worldfull
 
Prashant, I found such shareware - but was wondering if I really need to do that or if there's an easier route.

Kris, no, it's remaining a Windows form.

Thanks,
Eliezer
 
In that case ask the question in one of the forums suggested above as this isn't an ASP.NET issue.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thank you. I've reposted it in the C# forum at thread732-1270831.

Sorry for this wrong forum posting...
Eliezer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top