473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

VB.net to C# converter?

Hi,

Does anyone know where I can find a VB.net to C# converter?

Thanks,
Mark
Nov 15 '05 #1
7 1678
http://www.ellkay.com/ConvertVB2CSharp.htm
-----Original Message-----
Hi,

Does anyone know where I can find a VB.net to C# converter?
Thanks,
Mark
.

Nov 15 '05 #2
Thanks, but it is no go. I have several non-supported commands including
AddressOf, AddHandler, and RemoveHandler. When I try anyway I get.

Server Error in '/' Application.
----------------------------------------------------------------------------
----

Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
Mark


"Richard A Lowe" <ch*****@yumspamyumYahoo.com> wrote in message
news:03****************************@phx.gbl...
http://www.ellkay.com/ConvertVB2CSharp.htm
-----Original Message-----
Hi,

Does anyone know where I can find a VB.net to C#

converter?

Thanks,
Mark
.

Nov 15 '05 #3
You just typed your newsgroup post with the best converter there is - your
fingers.

Tom Dacon

"Mark Oliver" <ma*********@comcast.net> wrote in message
news:yGghb.721898$uu5.120048@sccrnsc04...
Hi,

Does anyone know where I can find a VB.net to C# converter?

Thanks,
Mark

Nov 15 '05 #4
It's a bit tacky and you'll lose the local variable names, but you could try
using one of the decompilers on your compiled assembly. Most of them allow
you to output the source code in C# in a file...

--Oren

"Mark Oliver" <ma*********@comcast.net> wrote in message
news:yGghb.721898$uu5.120048@sccrnsc04...
Hi,

Does anyone know where I can find a VB.net to C# converter?

Thanks,
Mark

Nov 15 '05 #5
Well, it's not perfect - sounds like you'll have to convert event handlers
by hand.

You could also try Reflector http://www.aisto.com/roeder/dotnet/ which you
can use to decompile Assemblies (which were coded in VB.NET) to C#.

Richard

--
Veuillez m'excuser, mon Français est très pauvre. Cependant, si vous voyez
mauvais C #, c'est mon défaut!
"Mark Oliver" <ma*********@comcast.net> wrote in message
news:Nihhb.713227$YN5.607699@sccrnsc01...
Thanks, but it is no go. I have several non-supported commands including
AddressOf, AddHandler, and RemoveHandler. When I try anyway I get.

Server Error in '/' Application.
-------------------------------------------------------------------------- -- ----

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web>
</configuration>
Mark


"Richard A Lowe" <ch*****@yumspamyumYahoo.com> wrote in message
news:03****************************@phx.gbl...
http://www.ellkay.com/ConvertVB2CSharp.htm
-----Original Message-----
Hi,

Does anyone know where I can find a VB.net to C#

converter?

Thanks,
Mark
.


Nov 15 '05 #6
I've wondered about that... I wonder what kind of spaghetti you'd end up
with if you used the tools to do:

VB6 -tool-> VB.NET -> IL -decompile -> C#
"Richard A. Lowe" <ch*****@yumspamyumYahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Well, it's not perfect - sounds like you'll have to convert event handlers
by hand.

You could also try Reflector http://www.aisto.com/roeder/dotnet/ which you
can use to decompile Assemblies (which were coded in VB.NET) to C#.

Richard

Nov 15 '05 #7
On Fri, 17 Oct 2003 08:45:48 -0400, Daniel Billingsley
<db**********@NO.durcon.SPAAMM.com> wrote:
I've wondered about that... I wonder what kind of spaghetti you'd end up
with if you used the tools to do:

VB6 -tool-> VB.NET -> IL -decompile -> C#


You can use Spices.Net Decompiler. This tool allows you to convert
assemblies into 6 languages (IL, C#, VB.Net, MC++, J# and Delphi.Net)

Best regards,
Al, 9Rays.Net
Nov 15 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: techy techno | last post by:
hii Experts..!! I need someone to tell me where I can get a Currency Converter like http://cconv.textor.com please can someone tell me where I can get it I need it for free + I dont need...
5
by: jorfei | last post by:
I have written a component with a property IPAdrress of type System.Net.IPAddress. To ease the configuration of the component at design time, I have written a type converter for the type...
3
by: Jon Rea | last post by:
is there a c# -> c++ code converter out there ? Hi people, I was just wondering if there is a C# to C++ converter out there. I have some working c# code and need to integrate it into a...
2
by: TheMadHatter | last post by:
does anybody know of a half decent converter????? I tried the "VBConversions VB.Net to C# Converter" with less than satisfactory results, and an unnecisary hole in the bank.
0
by: Max Power | last post by:
I'm having some trouble with an RTF converter called Logictran R2Net when two users access my site simultaneously. My application simply runs an SQL query (based on parameters typed by user) that...
4
by: John | last post by:
Hi Is there a way to convert whole c# projects (or solutions) to vb.net projects or solutions? Most converters I have come across only convert snippets. Thanks Regards
1
by: Nikola | last post by:
Hellooo! Can someone help me please. I tipe this code and it don't work!!! Whyyyyyy. <html> <head> <title>Text object value</title> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!--...
12
by: Tana | last post by:
Hi, My company wants to migrate all our apps from vb.net to c#. Can someone recommend a good migrate/convert tool? I am hoping that such a tool can do a 90-95% work for me, and I will do the...
10
by: esha | last post by:
I tried several online converters. In many case they do the job, but sometimes give some mess. I think that all converters I know are old, were created for VS 2003 and do not understand new stuff...
3
by: John Dalberg | last post by:
I have been trying a few commerical vb.net to c# converters. None of them converts inline vb.net asp.net code? Is there any converter that can convert inline code (code in aspx files)? I don't...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.