List of Articles

Visual Basic to Visual Basic.NET

In this article we will discuss about the changes in Visual Basic. These changes are just too good for any Visual Basic programmer to get shifted to Visual Basic.NET (also referred as VB.NET). In the current launch, .NET architecture and C# as a new language got so much of importance that sometimes we tend to ignore the new power and flexibility provided for VB.NET.

Now these new features can be roughly categorized in following sections.

  1. Object-Oriented Features
    VB.NET has a major lead in object-oriented programming. As a Visual Basic programmer we were required to write a separate class module to implement a simple oops functionality. Features given were also very limited. Now when we talk about VB.NET, our form module itself is a class. We can derive a ‘form’ from another ‘form’ which will have the same properties, methods and objects of base form. We can change the functionality of any object by overriding that specific function. We have constructors for our form. I know you must be wondering by now, am I talking about the C++? No. All these features are of VB.NET.
  2. CLR based Features
    CLR (Common Language Runtime) as discussed in earlier articles is a very good common base for development. It gives common functionality support to all the languages supporting .NET.



    So ASP.NET, Windows Forms, Web Forms, ADO.NET and using entire functionality of Base Class Library is available to VB.NET also. We can make use of Visual Studio.NET for Rapid Application Development.

    Web development Features
    When the Internet based development was increasing to major extent, visual basic was used only for component development and ASP was used for Web based user interface. Now VB.NET can be used for the user interface of web based development. ASP.NET will use either VB.NET or C# for code snippets and it will be compiled code.

    Winforms/WebForms
    Windows forms are basically meant for GUI development for client-server applications. These components are similar to visual basic form components. There are some additional functions provided like Visual Inheritance, Control anchoring and Docking, Many Accessibility functions, and powerful graphics with GDI+. Web Forms also do have similar functionality apart from the fact that those are for web based development.

  3. Language Related Features
    Most of the redundant syntax is removed. Some new statements are added for Structured Exception Handling like try-catch-finally etc.
In short we can conclude that there are lots of changes in VB.NET. So the shift has not been as simple as VB5 to VB6, but the new horizons, which are opened for Visual Basic programmers, are also very tempting. These changes are also leading us to some porting issues and Interoperatibility issues which will be addressed in the next article.

The author, Ms. Vaishali is Director Fands Infotrainers and can be reached at vaishali@fandsindia.com