Home All Groups Group Topic Archive Search About

C# to VB crossover questions

Author
26 Jun 2005 6:22 AM
cashdeskmac
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.

Author
26 Jun 2005 6:24 AM
Cor Ligthert
CashDeskMac,

The best I have read until now.

http://groups-beta.google.com/group/microsoft.public.dotnet.general/msg/804482b9cce63bb7?hl=en

I hope this helps,

Cor
Author
26 Jun 2005 6:39 AM
cashdeskmac
Many thanks, Cor.

Any other pointers would also be appreciated.

Show quoteHide quote
"Cor Ligthert" wrote:

> CashDeskMac,
>
> The best I have read until now.
>
> http://groups-beta.google.com/group/microsoft.public.dotnet.general/msg/804482b9cce63bb7?hl=en
>
> I hope this helps,
>
> Cor
>
>
>
Author
26 Jun 2005 1:03 PM
Bob Powell [MVP]
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.





Show quoteHide quote
"cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in message
news:BF3671C2-FB01-43D5-B579-2936288D4BBC@microsoft.com...
>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.
Author
26 Jun 2005 1:27 PM
Cor Ligthert
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
Author
26 Jun 2005 2:42 PM
_AnonCoward
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxgrflanguageequivalentscodeexamples.asp

Show quote Hide quote
"cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in message
news:BF3671C2-FB01-43D5-B579-2936288D4BBC@microsoft.com...
: 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.
Author
26 Jun 2005 3:09 PM
cashdeskmac
Many thanks, everyone.  These links have been most helpful.

Cashdeskmac.

Show quoteHide quote
"_AnonCoward" wrote:

> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxgrflanguageequivalentscodeexamples.asp
>
> "cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in message
> news:BF3671C2-FB01-43D5-B579-2936288D4BBC@microsoft.com...
> : 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.
>
>
>
Author
26 Jun 2005 6:08 PM
_AnonCoward
Also this:

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


"cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in message
news:FCCA9477-B596-425B-AE0E-3D5B4B33A977@microsoft.com...
: Many thanks, everyone.  These links have been most helpful.
:
: Cashdeskmac.
:
: "_AnonCoward" wrote:
:
: >
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxgrflanguageequivalentscodeexamples.asp
Show quoteHide quote
: >
: > "cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in
message
: > news:BF3671C2-FB01-43D5-B579-2936288D4BBC@microsoft.com...
: > : 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.
: >
: >
: >
Author
26 Jun 2005 3:39 PM
Howard Kaikow
There 2, perhaps, useful books.

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

John Mojica's "C# & VB.NET Conversion Pocket Reference".

--
http://www.standards.com/; See Howard Kaikow's web site.
Show quoteHide quote
"cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in message
news:BF3671C2-FB01-43D5-B579-2936288D4BBC@microsoft.com...
> 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.
Author
26 Jun 2005 4:20 PM
David Anton
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

Show quoteHide quote
"cashdeskmac" wrote:

> 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.
Author
27 Jun 2005 1:53 AM
Shane Story
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

Show quoteHide quote
"cashdeskmac" <cashdesk***@discussions.microsoft.com> wrote in message
news:BF3671C2-FB01-43D5-B579-2936288D4BBC@microsoft.com...
>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.