C# to VB crossover questions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been studying C# for 18 months via a distance-learning course, but
having just got my first IT job, I will be using only VB .NET as the
programming language.

The syntax is very similar, and I shouldn't have too much trouble picking it
up, but I was wondering if anyone can point out any major differences between
the two languages.

I know that arrays are resizable in VB as opposed to having a set length in
C#, but it's things like modules (I guess that's just another .VB file,
please correct me if I'm wrong) and other terminology which I have to cover.

I would really appreciate any input from the community so that I can make a
good impression on my first day in my first IT position.
 
Just write all your code in C# and use a converter to turn it into VB at the
end of the day when your boss asks what you've been doing :-)

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Hi,

I was thinking what would be the most difficult to find for you.

That are probably the events. Those are in two dropdownboxes abover your
code.
Those add automaticly extra code to the sub/function method (sub is a void
function)..

(You can use in code the same as in C# that is "addhandler").

Just came in my mind.

Here probably a great page for you.

http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html

I hope this helps,

Cor
 
http://msdn.microsoft.com/library/d...html/vxgrflanguageequivalentscodeexamples.asp

: I have been studying C# for 18 months via a distance-learning course,
but
: having just got my first IT job, I will be using only VB .NET as the
: programming language.
:
: The syntax is very similar, and I shouldn't have too much trouble
picking it
: up, but I was wondering if anyone can point out any major differences
between
: the two languages.
:
: I know that arrays are resizable in VB as opposed to having a set
length in
: C#, but it's things like modules (I guess that's just another .VB
file,
: please correct me if I'm wrong) and other terminology which I have to
cover.
:
: I would really appreciate any input from the community so that I can
make a
: good impression on my first day in my first IT position.
 
There 2, perhaps, useful books.

Brian Bischof's "The .NET Languages: A Quick Translation Guide".

John Mojica's "C# & VB.NET Conversion Pocket Reference".
 
Please download the demo edition of our Instant VB C# to VB.NET converter at
www.instantvb.com (free + fully supported). For your purposes, the snippet
converter feature may be a handy reference.

David Anton
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
 
Also this:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q308470


: Many thanks, everyone. These links have been most helpful.
:
: Cashdeskmac.
:
: "_AnonCoward" wrote:
:
: >
http://msdn.microsoft.com/library/d...html/vxgrflanguageequivalentscodeexamples.asp
: >
message
: > : > : I have been studying C# for 18 months via a distance-learning
course,
: > but
: > : having just got my first IT job, I will be using only VB .NET as
the
: > : programming language.
: > :
: > : The syntax is very similar, and I shouldn't have too much trouble
: > picking it
: > : up, but I was wondering if anyone can point out any major
differences
: > between
: > : the two languages.
: > :
: > : I know that arrays are resizable in VB as opposed to having a set
: > length in
: > : C#, but it's things like modules (I guess that's just another .VB
: > file,
: > : please correct me if I'm wrong) and other terminology which I have
to
: > cover.
: > :
: > : I would really appreciate any input from the community so that I
can
: > make a
: > : good impression on my first day in my first IT position.
: >
: >
: >
 
Basically,

You'll just have to learn to do most things a lot easier and with a lot less
thought. ;) VB is much friendlier.

Possible the VB.NET Resource Kit with all of it's examples would be a good
place to see some sample code and differences. Also, I don't remember the
link but there is a good article...possibly by Microsoft... that outlines
the differences in the two.

Shane
 
Back
Top