Channel Button

There are 3 articles on this title. You are reading the article ranked and rated #2 by Helium's members.

Computers & Technology   >

Software & Web Development

Get a Widget for this title

The basic concepts of VB.Net

Visual Basic .NET (VB.NET) is an object-oriented, event-driven programming language. If you already program in Java or C#, you know what this means and you can skip this article. If you don't, keep reading.

An object-oriented programming language is one that is based on reusable objects. Object-oriented programming allows you to define an object once and use it in multiple programs. Common Visual Basic objects, such as Forms and controls are good examples of how object-oriented programming can save a lot of work. For example, instead of manually writing the code to draw a drop-down list box on the screen, you can use the Visual Basic ComboBox control each time you need that functionality.

Visual Basic wasn't always an object-oriented language. Versions earlier than VB.NET did not support inheritance. Inheritance is an important tenant of object-oriented programming that allows one object to inherit functionality defined by another object. Let's go back to the example of the ComboBox control. The ComboBox control is defined by the ComboBox class (a class is like a template that defines the behavior of an object). The ComboBox class inherits from the ListControl class, which in turn inherits from the Control class. This means that instead of writing code to implement every single feature the ComboBox needs to do, the developer could allow it to use the implementation provided by either the ListControl or the Control class. In turn, you could create a control that inherited from the ComboBox class. You would only need to write code to provide the functionality unique to your control. Any functionality implemented by the parent classes would automatically be there.

An event-driven programming language is one in which objects "listen" for events. An event can be something a user does, like clicking on a button, or it can be sent by the operating system, for example loading an object into memory. Event-driven programming allows users to interact with a program's features in any order. The programmer simply associates code with a specific event.

Another concept you will heard mentioned with regards to VB.NET is that it generates "managed code". Managed code is code that is loaded and controlled by the .NET Framework Common Language Runtime (CLR). With managed code, the programmer does not need to worry about cleaning up objects and removing them from memory because the CLR takes care of those details for you.

These are the basic concepts to get you started using VB.NET. However, there are many more important concepts you will need to learn as you begin to write Visual Basic applications.

Learn more about this author, Rachelle Reese.
Contact this writer Click here to send this author comments or questions.


Below are the top articles rated and ranked by Helium members on:

The basic concepts of VB.Net

  • 1 of 3

    by Raj Kumar

    VB.Net is based on the concept of Microsoft .Net Framework architecture. You can say that VB.Net is similar to Visual Basic

    read more

  • 2 of 3

    by Rachelle Reese

    Visual Basic .NET (VB.NET) is an object-oriented, event-driven programming language. If you already program in Java or C#,

    read more

  • 3 of 3

    by Sherrie Taylor

    VB.net is a programming language evolved from an early version of DOS and it's old BASIC. It is an event driven, object oriented

    read more

Add your voice

Know something about The basic concepts of VB.Net?
We want to hear your view. Write_penWrite now!

Helium Debate

Cast your vote!

Which is a better Web application framework: Ruby on Rails or PHP?

Click for your side.

127966

Featured Partner

International Journalists' Network

The International Journalists' Network (IJNet) is the world's premier resource for the media assistance community. It...more

What is Helium? | Buy Web Content | Contact Us | Privacy | User agreement | DMCA | User Tools | Help | Community | Helium’s Official Blog | Link to Helium

Helium, Inc.
200 Brickstone Square Andover, MA 01810 USA