By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

VB---to C# Difficulty???? Opinion?

P: n/a
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?

Thanks for your opinions,

Shane
Nov 20 '05 #1
Share this Question
Share on Google+
28 Replies


P: n/a
Very little. It's basically the same thing, slightly different syntax.

Because they both use the .NET framework, there should be almost no learning
curve, because the only difference is syntax - which is easy to learn.

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?

Thanks for your opinions,

Shane

Nov 20 '05 #2

P: n/a
If you can keep trak of the darn {} you got it made. Hate the little things
hard for me see. I prefer End If but thats me.

B

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?

Thanks for your opinions,

Shane

Nov 20 '05 #3

P: n/a
It's the case-sensitivity and the square brackets rather than parentheses
that will be the hardest for you to remember, probably. But you get used to
those too, in a pretty short time.

"BrianDH" <No**********@nospam.com> wrote in message
news:Ff********************@telcove.net...
If you can keep trak of the darn {} you got it made. Hate the little things hard for me see. I prefer End If but thats me.

B

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?

Thanks for your opinions,

Shane


Nov 20 '05 #4

P: n/a
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.


Take it, you'll be just fine since you already know the objects involved.
The syntax differences only make you crazy if you switch back and forth all
the time.

Knowing both languages is a plus in the long run, IMHO.

Best Regards,

Andy
Nov 20 '05 #5

P: n/a
I'm in the process now of adding C# translations of my VB.net samples to my
site. It is amazing how easy it is. There's one or two little trip-ups but
nothing that google won't sort for you.

I have to say though that I much prefer VB.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"BrianDH" <No**********@nospam.com> wrote in message
news:Ff********************@telcove.net...
If you can keep trak of the darn {} you got it made. Hate the little things hard for me see. I prefer End If but thats me.

B

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?

Thanks for your opinions,

Shane


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
Nov 20 '05 #6

P: n/a
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
I am a VB/VB.NET programmer. I have done some C/C++ years ago.
So, you are already familiar with a weird syntax.
I am considering a job opportunity which is unfortunately in C# and not
VB.NET.
:-(
What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?


Learning C# is very easy if you are familiar with C or any other
case-sensitive language. I am currently doing 75 percent in VB.NET and
the rest in C#, and I always have my problems with remembering the
correct case. For me, that reduces my performance in programming C# to
about the half of my VB.NET coding performance.

Aside from that, there should not be many problems, there are little
differences in the keywords, differences in array declarations, and
event handling, but the rest is pretty the same as in VB.NET. As a
first step, I would look up the table with the keyword equivalents in
the documentation and then take a look at arrays and event handling.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #7

P: n/a
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in
news:uc**************@TK2MSFTNGP12.phx.gbl:
What is the group's opinion on the difficulty level/time frame of a
VB.NET programmer learning to program in C#?


All classes are the same between VB.NET and C#. There are only small
differences between the two. It shouldn't take nyou more than a couple
hours. Maybe a couple days or a week or two for the more obscure
features/syntaxes.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #8

P: n/a
SStory wrote:
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?


As Herfried and the others already stated there should not be many problems.

A small and useful book that points out the differences is:
http://www.oreilly.com/catalog/csharpvbpr/

Cheers

Arne Janning
Nov 20 '05 #9

P: n/a
Second that. Well worth the $10 or so.

Greg

"Arne Janning" <sp*****************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
SStory wrote:
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?
As Herfried and the others already stated there should not be many

problems.
A small and useful book that points out the differences is:
http://www.oreilly.com/catalog/csharpvbpr/

Cheers

Arne Janning

Nov 20 '05 #10

P: n/a
me too... VB all the way! but need the work and this one is in C# and close
by.....
"BrianDH" <No**********@nospam.com> wrote in message
news:Ff********************@telcove.net...
If you can keep trak of the darn {} you got it made. Hate the little things hard for me see. I prefer End If but thats me.

B

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?

Thanks for your opinions,

Shane


Nov 20 '05 #11

P: n/a
Hey thanks for the book...

That will be great if I take the job..

Shane
"Arne Janning" <sp*****************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
SStory wrote:
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?
As Herfried and the others already stated there should not be many

problems.
A small and useful book that points out the differences is:
http://www.oreilly.com/catalog/csharpvbpr/

Cheers

Arne Janning

Nov 20 '05 #12

P: n/a
Thanks...
I have no idea why anyone would want to complicate their lives by choosing
C#--I see no advantage...

Unfortunately many companies have decided to go that road....

Danke,

Shane
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ef**************@TK2MSFTNGP09.phx.gbl...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
I am a VB/VB.NET programmer. I have done some C/C++ years ago.


So, you are already familiar with a weird syntax.
I am considering a job opportunity which is unfortunately in C# and not
VB.NET.


:-(
What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?


Learning C# is very easy if you are familiar with C or any other
case-sensitive language. I am currently doing 75 percent in VB.NET and
the rest in C#, and I always have my problems with remembering the
correct case. For me, that reduces my performance in programming C# to
about the half of my VB.NET coding performance.

Aside from that, there should not be many problems, there are little
differences in the keywords, differences in array declarations, and
event handling, but the rest is pretty the same as in VB.NET. As a
first step, I would look up the table with the keyword equivalents in
the documentation and then take a look at arrays and event handling.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #13

P: n/a
Technically, there is none. But, depending on your background, C# could
potentially easier to learn. From an emploer perspective, I'm sure there is
still a bias that VB* is a toy languge, and "real" programmers know C and/or
C++.

I prefer VB. However, I wish it had a line TERMINATION character (;) instead
of a line CONTINUATION (_) character.

Hate the C style curly braces, though. Hate 'em, Hate 'em, Hate 'em.

Bob Lehmann

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
Thanks...
I have no idea why anyone would want to complicate their lives by choosing
C#--I see no advantage...

Unfortunately many companies have decided to go that road....

Danke,

Shane
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ef**************@TK2MSFTNGP09.phx.gbl...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
I am a VB/VB.NET programmer. I have done some C/C++ years ago.


So, you are already familiar with a weird syntax.
I am considering a job opportunity which is unfortunately in C# and not VB.NET.


:-(
What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?


Learning C# is very easy if you are familiar with C or any other
case-sensitive language. I am currently doing 75 percent in VB.NET and
the rest in C#, and I always have my problems with remembering the
correct case. For me, that reduces my performance in programming C# to
about the half of my VB.NET coding performance.

Aside from that, there should not be many problems, there are little
differences in the keywords, differences in array declarations, and
event handling, but the rest is pretty the same as in VB.NET. As a
first step, I would look up the table with the keyword equivalents in
the documentation and then take a look at arrays and event handling.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>


Nov 20 '05 #14

P: n/a
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in
news:OF**************@TK2MSFTNGP11.phx.gbl:
I have no idea why anyone would want to complicate their lives by
choosing C#--I see no advantage...


People who use C# probably wonder the same thing about VB.NET, Java or any
other language.

It's just personal preference.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #15

P: n/a
On Mon, 26 Jul 2004 21:24:55 -0500, SStory wrote:
Hey thanks for the book...

That will be great if I take the job..

Shane


Take it... C# is a great language. Of course, I'm biased - I've always
been partial to C style syntax.

--
Tom Shelton [MVP]
Nov 20 '05 #16

P: n/a
Actually, while it seems simple at first to convert, there are some
insidiously nasty issues that you had better be prepared to deal
with:

- The "!" operator has greatly different precedence than VB's "Not".

- The ending condition of a VB.NET "For" loop is only tested once, on
the first entry to the loop; while a C# "for" loop tests the ending
condition on every iteration.

- Just try consistently remembering what the following translate to:
"x Is y" vs "TypeOf x Is y" vs "GetType(x)" (I've coded it into the
Instant C# converter, but I have trouble keeping them straight).

http://www.tangiblesoftwaresolutions...rsion_Tips.htm

Nov 20 '05 #17

P: n/a
Hi Shane,

Unbelievable so much messages and still I can add something.

In my idea is for a good VBNet programmer the only problem with C# that C#
has not that extremly well IDE what is used in VBNet.

Most errors come in C# only when you compile. While VBNet is non case
sensitive, it translate all classses and variables to the proper case. Which
is not done in C# which makes it difficult for a VBNet programmer in the
start.

In my opinion is that as well (because of the so much used English and
uprecasses in dotNet) that VBNet is (although that it uses more words)
better for international use (non English), because for a lot of programmers
the cases have less meaning than for English programmers.

However just my opinion,

Cor
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?

Thanks for your opinions,

Shane

Nov 20 '05 #18

P: n/a
* Lucas Tam <RE********@rogers.com> scripsit:
I have no idea why anyone would want to complicate their lives by
choosing C#--I see no advantage...


People who use C# probably wonder the same thing about VB.NET, Java or any
other language.

It's just personal preference.


It's decision between being productive or not.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #19

P: n/a
That's my concern.

I remember C being a pain to use with case sensitivity and hard pointer
syntaxes and so seems productivity would go down.

I don't suppose most employers would allow you to mix.
Some work in C# and some in VB.NET?

Would be nice.

Thanks,

Shane

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O%****************@TK2MSFTNGP09.phx.gbl...
* Lucas Tam <RE********@rogers.com> scripsit:
I have no idea why anyone would want to complicate their lives by
choosing C#--I see no advantage...


People who use C# probably wonder the same thing about VB.NET, Java or any other language.

It's just personal preference.


It's decision between being productive or not.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #20

P: n/a
I really hate case sensitivity too..
Just not a lot of high tech jobs where I live so I may have to take this
one.

I am bilingual spanish/english, so I know what you mean.

Thanks Cor,

Shane

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl...
Hi Shane,

Unbelievable so much messages and still I can add something.

In my idea is for a good VBNet programmer the only problem with C# that C#
has not that extremly well IDE what is used in VBNet.

Most errors come in C# only when you compile. While VBNet is non case
sensitive, it translate all classses and variables to the proper case. Which is not done in C# which makes it difficult for a VBNet programmer in the
start.

In my opinion is that as well (because of the so much used English and
uprecasses in dotNet) that VBNet is (although that it uses more words)
better for international use (non English), because for a lot of programmers the cases have less meaning than for English programmers.

However just my opinion,

Cor
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET programmer learning to program in C#?

Thanks for your opinions,

Shane


Nov 20 '05 #21

P: n/a
Ok,
I fired up C# to do my first app. I through a text box and a button on the
form.

Then wanted to do something with an event for the textbox and there are not
in the dropdown's?

Does this mean that in C# you have to remember the names of all events?

If so, why in the world would anyone want to use it?

Hope I'm missing something.

I know this is a VB group, forgive me.

Shane

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:uc**************@TK2MSFTNGP12.phx.gbl...
Hello Group.

I am a VB/VB.NET programmer. I have done some C/C++ years ago.

I am considering a job opportunity which is unfortunately in C# and not
VB.NET.

What is the group's opinion on the difficulty level/time frame of a VB.NET
programmer learning to program in C#?

Thanks for your opinions,

Shane

Nov 20 '05 #22

P: n/a
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Ok,
I fired up C# to do my first app. I through a text box and a button on the
form.

Then wanted to do something with an event for the textbox and there are not
in the dropdown's?


There is a small button in the properties window that shows a yellow
lightning. Click this button to see the events and event handlers.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #23

P: n/a
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Ok,
I fired up C# to do my first app. I through a text box and a button on the form.

Then wanted to do something with an event for the textbox and there are not in the dropdown's?


There is a small button in the properties window that shows a yellow
lightning. Click this button to see the events and event handlers.

....and when you are looking for overrides just type override in the editor
and an intellisense list will pop up.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004
Nov 20 '05 #24

P: n/a
On 27 Jul 2004 13:51:10 +0200, Herfried K. Wagner [MVP] wrote:
* Lucas Tam <RE********@rogers.com> scripsit:
I have no idea why anyone would want to complicate their lives by
choosing C#--I see no advantage...


People who use C# probably wonder the same thing about VB.NET, Java or any
other language.

It's just personal preference.


It's decision between being productive or not.


I find I'm quite productive in C#. Just because you don't like it -
doesn't mean others don't. It's about personal preference.

--
Tom Shelton [MVP]
Nov 20 '05 #25

P: n/a
Could be Tom and I appreciate your opinion. Just seems like a lot more
hassle in C# and no advantage that I can see other than operator overload
and a few other things--that I can live without for now.

Thanks again,

Shane
"Tom Shelton" <to*@YOUKNOWTHEDRILLmtogden.com> wrote in message
news:12******************************@40tude.net.. .
On 27 Jul 2004 13:51:10 +0200, Herfried K. Wagner [MVP] wrote:
* Lucas Tam <RE********@rogers.com> scripsit:
I have no idea why anyone would want to complicate their lives by
choosing C#--I see no advantage...

People who use C# probably wonder the same thing about VB.NET, Java or any other language.

It's just personal preference.


It's decision between being productive or not.


I find I'm quite productive in C#. Just because you don't like it -
doesn't mean others don't. It's about personal preference.

--
Tom Shelton [MVP]

Nov 20 '05 #26

P: n/a
Thanks, after sending this message I did find the button through online
help.

I'm with you in that VB seems a lot easier and less error prone. Since
there is no real advantage it is curious why one would choose C#. I get the
feeling that some folks choose it because they have a C/Java background and
I really understand that reason, but that others who have a background in
neither choose C# because they are
1) afraid MS will can VB---I don't think that will happen.
2) intimidated into thinking it is a better language.

Anyhow, Thanks for the pointers.

Shane
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Ok,
I fired up C# to do my first app. I through a text box and a button on the form.

Then wanted to do something with an event for the textbox and there are not in the dropdown's?


There is a small button in the properties window that shows a yellow
lightning. Click this button to see the events and event handlers.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 20 '05 #27

P: n/a
Thanks Mick.

I have programmed in C before and so I am not at a total loss. I will just
have to relearn how to do much of the things I already know how to do in VB.
For example the other day I tried to deny keystrokes that were non numeric
and BEEP when they touched them. In VB that is just Beep--real simple. In
C# I have no idea. So it will probably be months of that sort of thing I
guess. At least they use the same framework classes and so I am not at a
loss there.

Thank,

Shane
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:O2**************@TK2MSFTNGP09.phx.gbl...
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
* "SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> scripsit:
Ok,
I fired up C# to do my first app. I through a text box and a button
on
the form.

Then wanted to do something with an event for the textbox and there
are
not in the dropdown's?


There is a small button in the properties window that shows a yellow
lightning. Click this button to see the events and event handlers.

...and when you are looking for overrides just type override in the editor
and an intellisense list will pop up.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004

Nov 20 '05 #28

P: n/a
In article <uP**************@TK2MSFTNGP10.phx.gbl>, SStory wrote:
Could be Tom and I appreciate your opinion. Just seems like a lot more
hassle in C# and no advantage that I can see other than operator overload
and a few other things--that I can live without for now.

Thanks again,

Shane


Don't get me wrong, I have nothing against VB.NET. I just happen to
like C style syntax and conventions better. I think it's all about how
your brain works :)

--
Tom Shelton [MVP]
Nov 20 '05 #29

This discussion thread is closed

Replies have been disabled for this discussion.