Breaking News

Monday, 16 February 2015

Language Fundamentals in VisualBasic.Net

What is Visual Basic?


Visual Basic is a programming language is introduced by microsoft.. It is simple ,modern, object-oriented programming language.It is vary much based on DOS version called BASIC. BASIC means Beginners All-purposeSymbolic Instruction Code. It is a relatively easy programming language to learn and it is different from c#.net.It als have vb.net 2005 , vb.net 2008 , vb.net 2010 and latest is vb.net 2012.
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET Framework. Although it is an evolution of classic Visual Basic language, it is not backwards-compatible with VB6, and any code written in the old version does not compile under VB.NET.
Like all other .NET languages, VB.NET has complete support for object-oriented concepts. Everything in VB.NET is an object, including all of the primitive types (Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and even assemblies. All objects inherits from the base class Object.

The following reasons make VB.Net language:

  • Modern, general purpose.
  • Object oriented.
  • Easy to learn.
  • Structured language.
  • It produces efficient programs.
  • It can be compiled on a variety of computer platforms.
  • Part of .Net Framework.
Strong Programming Features VB.Net

VB.Net has strong programming features:

  • Boolean Conditions
  • Automatic Garbage Collection
  • Standard Library
  • Assembly Versioning
  • Properties and Events
  • Delegates and Events Management
  • Easy-to-use Generics
  • Indexers
  • Conditional Compilation
  • Simple Multithreading
Example:

if you want to create any variable in vb.net

Dim i As Integer


creating class

Dim con as SqlConnection=new SqlConnection();


Programm:


Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Response.Write("welcome")

End Sub
End Class

No comments:

Post a Comment

Designed By Blogger Templates