> Why convert it? Simply create your resulting DLL and reference it in
> the IDE. This is what I did for a C# glassy button found on Code
> Project web site. The only real reason for converting it is to modify
> the code and you feel better doing so in VB.NET, otherwise language
> doesn't matter.
Where such code snippets are small (and I haven't checked this one so I don't
know) I would always convert to the language I am already using (Normally
VB.Net).
The main reason for this is not that I don't like C#. (Although there are
some bits of it I am less keen on than others ;P )
It's more that I hate having to create additional projects/Dlls to house
code which logically belongs in a specific tier of my existing application.
My ideal scenario is to have a project ".VSProj" project type which would
accept code files of any recognised type and compile them down into one file.
Then I could mix Vb.Net and C# as appropriate to any given task without creating
new dlls all over the place.
I think I'm going to have to keep dreaming on this one though. MS has more
to gain bty the current situation. The more people who argue over VB vs C#
the less people there are considering Java etc :P
--
Rory
Kevin S Gallagher - 25 Jul 2007 17:13 GMT
Completely understand :-)
I have not tried this but you might want to check it out, looks close to
what you are looking for but not exactly
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3650&lngWId=10
>> Why convert it? Simply create your resulting DLL and reference it in
>> the IDE. This is what I did for a C# glassy button found on Code
[quoted text clipped - 22 lines]
> --
> Rory
Neal - 28 Jul 2007 00:00 GMT
Get the C# source you need and compile it. Then go and get Lutz Roeders
Refletor for .Net from here: http://www.aisto.com/roeder/dotnet load the C#
component then cut and paste the generated source into a new VB project.
There will be a few minor errors to correct, but not too many.
Regards
Neal
>> Why convert it? Simply create your resulting DLL and reference it in
>> the IDE. This is what I did for a C# glassy button found on Code
[quoted text clipped - 22 lines]
> --
> Rory
Tom - 28 Jul 2007 11:34 GMT
There is a MUCH easier way.
VB.NET to C#
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx
and the other way around
C# to VB.NET
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
> Get the C# source you need and compile it. Then go and get Lutz Roeders
> Refletor for .Net from here: http://www.aisto.com/roeder/dotnet load the
[quoted text clipped - 27 lines]
>> more to gain bty the current situation. The more people who argue over
>> VB vs C# the less people there are considering Java etc :P