Computing.Net > Forums > Programming > visual basic and C#

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

visual basic and C#

Reply to Message Icon

Name: jpr
Date: March 22, 2002 at 06:57:46 Pacific
Comment:

Does anyone know the difference between visual basic and C# and how it all fits into this .NET thing? Is C# just a new and improved Visual Basic? C# looks a lot like Java, but I have never done anything with visual basic.. so I cant compare the two.



Sponsored Link
Ads by Google

Response Number 1
Name: Apple
Date: March 22, 2002 at 10:08:22 Pacific
Reply:

Very different languages but they attempt to do the same thing. C# looks like C and C++, just like Java. As a matter of fact, C++ is the root language for both Java and C#.

Visual Basic is based on BASIC but bears almost no resemblance to that language anymore (at least not the VAX BASIC I learned in high school). BASIC is not object oriented. What Visual Basic tries to do is become object oriented by using tools provided by other languages (Active X controls). Buttons, text boxes, radio buttons and other widgets are usually written in Visual C++, compiled into DLLs or OCXs and imported into Visual Basic as Active X controls. This method has been surprisingly, annoyingly successful.

Sit down with Visual Basic. You get a blank form. Draw a button on the form then double-click the button. You get a code window and a blank Sub Button1_Click(). Here you can define what that button does. Put "End" as the only command in the Sub and you get a button that immediately ends the program. Click the Play arrow on the tool bar and you can even see this form in action. Click the button and the form goes away.

While C, C++, C# and Java require some rudimentary programming knowledge, Visual Basic requires a rather large API reference (MSDN for the desperate). Assuming you know what all the controls do, you really don't need to know anything about how they work. You just use them and hope somebody makes a control that does what you need it to do.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: visual basic and C#

visual basic and access www.computing.net/answers/programming/visual-basic-and-access/3097.html

Visual Basic and Active Directory www.computing.net/answers/programming/visual-basic-and-active-directory/8695.html

Batch / C / Visual Basic.... www.computing.net/answers/programming/batch-c-visual-basic/15655.html