Solved

VB.Net and C#

Posted on 2013-06-03
5
182 Views
Last Modified: 2013-06-04
Hello,

I have just started to teach myself C# after teaching myself Vb.net and I am wondering what are the factors in determining when to use C# as opposed to vb.net.  From what I've seen so far, for most applications, either one would work just as well.  I come from a vba background and then started to teach myself vb.net.  However, I'm not fanatical about using vb.net.  I've read some posts where essentially a flame war starts over which programming language is "better".  I'm hoping to avoid that here.
0
Comment
Question by:chtullu135
5 Comments
 
LVL 2

Assisted Solution

by:Gargininave
Gargininave earned 150 total points
Comment Utility
There is no difference.  All works same.  The main thing is in which you can code it in better way.
0
 

Author Comment

by:chtullu135
Comment Utility
Thanks.  I had a feeling that was the case.
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 150 total points
Comment Utility
C# would allow you to use unsafe code:
http://msdn.microsoft.com/en-us/library/aa664769(v=vs.71).aspx
If you're not using unsafe code then there really are few significant differences, just syntactical ones.

Use whatever you're more comfortable with, or more importantly, what the customer wants.
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 200 total points
Comment Utility
The IDE for VB makes a couple of things easier. For example, you can make your application "single-instance" by checking a checkbox in the project's properties. In C#, you have to code your application to be single-instance. You can create a splash screen for your app pretty much the same way (in both environments).

Language-wise, any language written to target the Common Language Infrastructure (CLI; a description of the runtime environment that .NET uses) will permit you to use assemblies written in different languages with little to no trouble. .NET code is compiled to Intermediate Language (IL; an intermediate language similar to Java's bytecode). Such IL means that once compiled the Just-in-Time (JIT) compiler has no idea what programming language the original code was written in--it only sees IL code.

The short of it is:  Use whatever is comfortable for you, or as Idle_Mind suggests, whatever your environment (i.e. job) dictates. You never know:  You may end up getting a job where they write code in IronPython (an implementation of Python that targets the .NET CLR)!

P.S.

By "customer" I believe Idle_Mind is referring to somebody you might develop code or components for. An end-user is not going to know or care what programming language you used to create awesomeness for the  ; )
0
 

Author Closing Comment

by:chtullu135
Comment Utility
Thanks for the advice
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now