473,666 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difference between C# and VB.NET

Hi Guys,

It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.

Are there anything that i can do in one language and cannot in other?
And finally why C# seems to be a sort of standard in industry?

Regards,
Raj Dhrolia.
Jul 21 '05 #1
19 2146
Cor
Hi Raj,
It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.
There is no technical difference only a language difference and some small
differences
- With C# there is a better posibility to make program documentation
- VB.net has a larger instruction set.
Are there anything that i can do in one language and cannot in other?
Yes because it is a different language, but you can make with both the same
things.
And finally why C# seems to be a sort of standard in industry?


C# and VB.net needs both the Net framework that only runs completly on W98+,
NT4 sp6+ and newer Window OS systems. There are activities with Mono on
Linux for both C# and VB.net

Here some links to see the differences between C# and VB.net

Code C# and VB
http://www.harding.edu/USER/fmccown/...omparison.html

Language compare
http://msdn.microsoft.com/library/en...quivalents.asp

I hope this helps a little bit?

Cor
Jul 21 '05 #2
Cor,

First of all: Merry Christmas! :-)
- With C# there is a better posibility to make program documentation In VB.NET you can also create very easily great looking documentation with
the VB Commenter power toy
(http://www.gotdotnet.com/team/ide/he...ommenter.aspx).

--
Greetz,
Jan
_______________ _______________ ____
Read my weblog: http://weblogs.asp.net/jan
"Cor" <no*@non.com> schreef in bericht
news:Od******** ******@tk2msftn gp13.phx.gbl... Hi Raj,
It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.
There is no technical difference only a language difference and some small
differences
- With C# there is a better posibility to make program documentation
- VB.net has a larger instruction set.
Are there anything that i can do in one language and cannot in

other?
Yes because it is a different language, but you can make with both the same things.
And finally why C# seems to be a sort of standard in industry?
C# and VB.net needs both the Net framework that only runs completly on

W98+, NT4 sp6+ and newer Window OS systems. There are activities with Mono on
Linux for both C# and VB.net

Here some links to see the differences between C# and VB.net

Code C# and VB
http://www.harding.edu/USER/fmccown/...omparison.html

Language compare
http://msdn.microsoft.com/library/en...quivalents.asp
I hope this helps a little bit?

Cor

Jul 21 '05 #3

"Cor" <no*@non.com> schreef in bericht
news:Od******** ******@tk2msftn gp13.phx.gbl...
Hi Raj,
It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.
There is no technical difference only a language difference and some small
differences
- With C# there is a better posibility to make program documentation
- VB.net has a larger instruction set.


What about unsafe code in C# and VB.Net also doesn't support operator
overloading though they are planning on adding it
(http://blogs.gotdotnet.com/cambecc/p...50-4237-a751-1
27195cceeab).
Are there anything that i can do in one language and cannot in

other?
Yes because it is a different language, but you can make with both the same things.
And finally why C# seems to be a sort of standard in industry?
C# and VB.net needs both the Net framework that only runs completly on

W98+, NT4 sp6+ and newer Window OS systems. There are activities with Mono on
Linux for both C# and VB.net

Here some links to see the differences between C# and VB.net

Code C# and VB
http://www.harding.edu/USER/fmccown/...omparison.html

Language compare
http://msdn.microsoft.com/library/en...quivalents.asp
I hope this helps a little bit?

Cor


Yves
Jul 21 '05 #4
Cor
Hi Jan,

First of all: Merry Christmas! :-)


The same for me to you.

Cor
Jul 21 '05 #5
Sure, Operator Overloading is not yet available in VB.NET, but will be
available in the next version. And you can't write unsafe code in VB.NET
(but who would want to do that anyway ;-). But there are some things VB.NET
has and C# doesn't: background compilation, more intelligent intellisense,
.... So yes: there are some things that can be done in C# and not in VB.NET,
and visa versa. But all the "important stuff" (like OO) can be done in both
languages.

--
Greetz,
Jan
_______________ _______________ ____
Read my weblog: http://weblogs.asp.net/jan
"phoenix" <pa******@skyne tWORK.be> schreef in bericht
news:u6******** ******@TK2MSFTN GP09.phx.gbl...

"Cor" <no*@non.com> schreef in bericht
news:Od******** ******@tk2msftn gp13.phx.gbl...
Hi Raj,
It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.
There is no technical difference only a language difference and some small
differences
- With C# there is a better posibility to make program documentation
- VB.net has a larger instruction set.


What about unsafe code in C# and VB.Net also doesn't support operator
overloading though they are planning on adding it

(http://blogs.gotdotnet.com/cambecc/p...50-4237-a751-1 27195cceeab).
Are there anything that i can do in one language and cannot in other?

Yes because it is a different language, but you can make with both the

same
things.
And finally why C# seems to be a sort of standard in industry?


C# and VB.net needs both the Net framework that only runs completly on

W98+,
NT4 sp6+ and newer Window OS systems. There are activities with Mono on
Linux for both C# and VB.net

Here some links to see the differences between C# and VB.net

Code C# and VB
http://www.harding.edu/USER/fmccown/...omparison.html

Language compare

http://msdn.microsoft.com/library/en...quivalents.asp
I hope this helps a little bit?

Cor


Yves

Jul 21 '05 #6
Cor
Hi Phoenix,

Before there become misunderstandin gs, the code made with VB.net and C# is
the same.
(If you have in VB.net option strict on).

For unmanaged code you can use C++ but that is something else than C#

Cor
Jul 21 '05 #7

"Cor" <no*@non.com> schreef in bericht
news:Oe******** *****@TK2MSFTNG P09.phx.gbl...
Hi Phoenix,

Before there become misunderstandin gs, the code made with VB.net and C# is
the same.
(If you have in VB.net option strict on).

For unmanaged code you can use C++ but that is something else than C#

Cor


I'm talking about unsafe code, not unmanaged code.

It's not often used but a while back I needed to write some image
manipulation functions and without unsafe code they would take 10 times the
time to do the same job. With unsafe code however they get pretty close to
'old-fashioned' C/C++ code in execution time.

Yves
Jul 21 '05 #8
Cor
Hi Phoenix,

Misunderstandin g from me, thank you for making it clear.

Cor
Jul 21 '05 #9
BGD
I learned VB.NET but quickly moved to C# as most of the online samples,
code snippets, source code for books, etc. seems to be in C#. I am
programming mainly for smart devices using the compact framework and have
noticed that C# programs load faster and the exe sizes are smaller. It was
also fun learning C#.
I have been using VB since the first beta more than 12 years ago and it
was getting a little boring. The one nice thing about coding in VB using
Visual Studio is the code editor. That is about the only thing that I miss
from VB though...

"Raj Dhrolia" <ra********@hot mail.com> wrote in message
news:e2******** ******@TK2MSFTN GP10.phx.gbl...
Hi Guys,

It might seem to be a very easy question, but i am very much eager to
know some good technical difference between C# and VB.NET.

Are there anything that i can do in one language and cannot in other?
And finally why C# seems to be a sort of standard in industry?

Regards,
Raj Dhrolia.

Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
7067
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. Yensao
21
2999
by: b83503104 | last post by:
Hi, Can someone tell me the difference between single quote and double quote? Thanks
26
4398
by: Frank | last post by:
For my website i would like to display the age of my son in years, months, days and hours. For now i manage to get a result for totals. Like the total number of days. This is the beginning: starttime = Date.parse("Aug 10,2003, 07:07") sdt = new Date(starttime)
21
2833
by: Rich | last post by:
I was considering C# for developing a scientific application, but I have noticed a ~30% difference between VC++ .NET and C# on the same machine, under identical conditions: double a = 0,b = 0, c = 0, d = 0, e = 0; for(int n = 0; n != 6000000; n++) { a = n % 5 *2 / 3 - 4 + 6 / 3 - n + n * 2; b = n * 2.3 - 1 *2 / 3 - 4 + 6 / 3 - n + n * 2; c = n * 3 / 3.5 *2 / 3 - 4 + 6 / 3 - n + n * 2;
4
15729
by: jamesyreid | last post by:
Hi, I'm really sorry to post this as I know it must have been asked countless times before, but I can't find an answer anywhere. Does anyone have a snippet of JavaScript code I could borrow which calculated the difference in years and days between two dates, and takes leap years into account? I'm calculating the difference in the usual way, i.e....
3
4153
by: bbawa1 | last post by:
Hi, I have a table which has a field ItemsReceived of type datetime. I have a grid view which has two columns. In first column i have to show the data from field ItemsReceived and in second column I have to show difference between Currenttime and date from ItemReceived. How can I do that.
12
2705
by: Petronius | last post by:
Hallo, does anyone have an idea how to implement difference lists in Javascript? Thanks allot in advance
5
3483
by: Julius | last post by:
Hej dudes, I need to calc the difference between two timestamps / dates ... For example what i need to calculate: Date 1: 2007.11.06 - 20:13:04 Date 2: 2007.11.07 - 21:13:04 Difference: 1 day, 1hour
9
2668
by: viki1967 | last post by:
Hi all! This new forum its great! :) Congratulations !!! My answer: why this my code not working? Nothing error but not work the difference.... : <html>
11
12106
by: cmb3587 | last post by:
I have two arrays and I'm trying to create a 3rd array that is the difference between the two arrays Ex: arrayA: 3 5 8 9 arrayB: 3 4 6 9 difference of A-B: 5 8 however, my code is just returning me an array of 0's
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8639
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.