Channel Button

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

Computers & Technology   >

Software & Web Development

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 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, obje... read more

  • 2 of 3

    by Madhusoodanan.K.P.

    VB.Net is the latest version of the popular Visual Basic.Microsoft has done some remarkable re-engineering of their o... read more

  • 3 of 3

    by Rachelle Reese

    Visual Basic .NET (VB.NET) is an object-oriented, event-driven programming language. If you already program in Java o... read more

Add your voice

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

What do you know about?
  • Tell us! Get published today.
  • Reach millions.
  • Many ways to earn.
Join Helium Today

Already a member? Log in.

Helium Debate

Cast your vote!

Will Internet Explorer 8 solve Microsoft's Web browser problems?

Click for your side. Must be logged in.

173917

Featured Partner

Takes All Types

Takes All Types has partnered with Helium, giving you the chance to write for a cause. Browse Takes All Types' f...more

What is Helium? | User Guide | Community | Helium’s Official Blog | Link to Helium | Privacy | User agreement | DMCA

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