VB.NET or C# on CF

  • Thread starter Thread starter Bawwa
  • Start date Start date
B

Bawwa

Hi,

Im trying to decide if I should write my PocketPC
application using C# or VB.Net. Ive done OO programming
before so have no preference over any language.
From my analysis so far I believe my app will need a
database (prob SQLServerCE) and custom build controls
such as custom buttons, listview etc...

Ive heard that C# programs execute faster than VB.Net,
true? If so in which areas is is faster? Why and how?

VB.Net sounds good because of the ability to rapidly
prototype.


Thanks in advance.
 
In reality the performance difference is minimal. C# will give you the
ability to produce custom controls with designer support, add XML comments,
perform unsafe operations with pointers etc.

I would say from experience that either .NET language allows you to rapidly
prototype, the differences between the approaches are much less significant
than the difference between VB6 and C++.

Peter
 
Thank Peter

Would you say that C# would is more powerful then?
because it allows you to do with it than VB.Net.
What advice would you give me in selecting one of these 2
languages for my project. C# or VB.Net ?

Thanks in advance.
 
If you have no other factors to specifically require VB.NET then I would
personally recommend C# as it does allow you to do some extra things as
already outlined even if you don't intend to use these at first.
In terms of sample code, documentation etc most of what is available is
provided in both languages.

Peter
 
C# is not more powerful than VB. As Peter said, the only difference is that
C# allows you to make controls with designer support, use unsafe code
blocks, and XML comments. If you need any one of those then C# is a must,
otherwise the choice is irrelevant.
 
Bawwa,

I agree with Peter. Although the usual answer is "whichever you like better", I
really think that if somebody is asking the question, probably the better answer
is C#. In addition to the reasons Peter listed, there are also (currently
anyway) more code samples in C#.
 
You did not indicate what languages you currently program
in. The differences between C# and VB are not very
important. The deciding factor should be which language
you could learn faster. If you come from a VB background,
then by all means use VB.Net. If you come from a C/C++
background, use C#.
 
Hi,

There is no useful performance difference. Pick your language based on the
way that you like to program. IMO.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top