Academic Tutorials



English | French | Portugese | German | Italian
Home Advertise Payments Recommended Websites Interview Questions FAQs
News Source Codes E-Books Downloads Jobs Web Hosting
Chats

VB.NET
Introduction to VB.NET
Visual Basic Scripts
Variables and Data Types
Arrays and Collections
Arithmetic and String Operations
Relational and Logical Operations
Math and String Functions
Date and Time Functions
Display Formats
Subprograms
The If Statement
The If...Else Statement
The Else...If Statement
The Select...Case Statement
The For...Next Statement
The For Each...Next Statement
The While...End While Statement
The Do...Loop Statement

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
CSS 1.0
CSS 2.0
HLML
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
CVS
Python
Apple Script
PL/SQL Tutorial
SQL Server
PHP
.NET (dotnet)
Microsoft.Net
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
VC++
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Photoshop Tutorial
Gimp Tutorial
Matlab
Gnuplot Programming
GIF Animation Tutorial
Scientific Visualization Tutorial
Graphics
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Weblogic Tutorial
SEO
Web Site Hosting
Domain Name
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Eclipse
J2ME
JBOSS
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Cobol
Assembly Language
Mainframe
Forth Programming
Lisp Programming
Pascal
Delphi
Fortran
OOPs
Data Warehousing
CGI Programming
Emacs Tutorial
Gnome
ILU
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills
Database Tutorials
Oracle
MySQL
Operating System
BSD
Symbian
Unix
Internet
IP-Masquerading
IPC
MIDI
Software Testing
Testing
Firewalls
SAP Module
ERP
ABAP
Business Warehousing
SAP Basis
Material Management
Sales & Distribution
Human Resource
Netweaver
Customer Relationship Management
Production and Planning
Networking Programming
Corba Tutorial
Networking Tutorial
Microsoft Office
Microsoft Word
Microsoft Outlook
Microsoft PowerPoint
Microsoft Publisher
Microsoft Excel
Microsoft Front Page
Microsoft InfoPath
Microsoft Access
Accounting
Financial Accounting
Managerial Accounting
Network Sites


Introduction to VB.NET


home Next





  1. The next generation of Visual Basic, Visual Basic .NET is designed to be the easiest and most productive tool for creating .NET applications, including Windows applications, Web Services, and Web applications.


  2. A D V E R T I S E M E N T
  3. Visual Basic .NET also allows optional use of new language features. Inheritance, method overloading, structured exception handling, and free threading all make Visual Basic a powerful object-oriented programming language,while providing the traditional ease-of-use of Visual Basic development,.



  4. Visual Basic .NET fully integrates with the Common Language Runtime(CLR) and the .NET Framework, which together provide language interoperability, simplified deployment, enhanced security, and improved versioning support.



  5. Visual Basic .NET also allows optional use of new language features. Inheritance, method overloading, structured exception handling, and free threading all make Visual Basic a powerful object-oriented programming language,while providing the traditional ease-of-use of Visual Basic development,.






Using The System.Windows.Forms.Form class

The foundation class for all forms to be created is System.Windows .Forms.Form class. In VB .NET,all the forms that are created are also inheriting from this base class. For all the facilities needed for the form is provided by this class. By using separate codes,we can add additional functionality.

In the .NET Framework, a number of new features have been added to the Controls and the Form Class. Some of the new features quickly,we will see. In the Microsoft website,for most detailed information is available. Within the .NET Framework,we will see some of the members that have been added to Windows Forms Classes:



Do Things the Visual Basic .NET Way

  1. Rather than .NET Framework objects,use Visual Basic runtime methods.

  2. For instantiating classes,use the short method .

    ' Preferred.
    Dim Employees As New Collection()
    ' Not preferred.
    Dim Employees As Collection = New Collection()

  3. In the AddHandler statement,do not explicitly instantiate a delegate.

  4. Rather than the DllImport attribute to access native APIs,use the Declare statement .

  5. Use of single-line If statement should be avoided.

  6. With the variable name,declare the array length.

    ' Preferred.
    Dim Buttons(4) As Button
    ' Not preferred.
    Dim Buttons() As Button = New Button() {}

  7. Rather than "On Error",use Try...Catch.

  8. Rather than an AddHandlerstatement,use a Handles clause.

  9. Instead of Str(),use CStr().
  10. Instead of Int(),use CInt() .
  11. Use Option Strict On, either as a statement in each file, or as a project setting.

  12. Use Option Explicit On, either as a statement, or as a project setting in each file.

  13. When applying an attribute,use the complete class name .
  14. Rather than global methods in modules,use shared methods in classes .
  15. Do not use type characters (%,$, and so on).
  16. Do not use Call.




Difference between VB and VB.NET


  1. VB.NET is what it got transformed into under the Microsoft .NET framework and VB is an obsolete language



  2. However, VB.NET,C++.NET and C# all compile into the same .NET code - in a certain sense it is almost like they are the same language.



  3. The greatest change in VB.NET and VB6 is of runtime environment. VB6 used the VB-Runtime while running the program but VB.NET uses the .Net Common Language Runtime (.Net CLR).In comparision to VB-Runtime,the CLR is much better designed and implemented.VB-Runtime interprets the code while the CLR uses better code translation through Just in Time compiler.In comparision to VB6,the CLR Garbage Collector is also more efficient one as it may detect cyclic references too.



  4. VB6 was interpreter based language while VB.NET is a compiled language and the VB6 was not a type-safe language while VB.NET is a type safe language. There is no no magical type conversions in VB.NET and variant type happen in VB.NET



  5. VB6 used ‘On Error Goto’ syntax to handle exceptions at runtime. VB.NET uses the Try..Catch.At runtime,finally syntax is used to handle exceptions .



  6. In VB6,a lot of code (like user interface code) was hidden from developer. In VB.NET no code is hidden from developer and you can access and control each part of your application



  7. VB.NET has much enhanced object oriented support than VB6



  8. VB6 does not allow developing the multithreaded applications but in VB.NET you can create multithreaded applications.



  9. VB6 was only considered good for desktop windows application but in VB.NET you can also develop web applications, distributed applications, create .NET windows and web controls and components, write windows and web services.



  10. In VB.NET,to read the meta-data of types,reflections is used and using reflection emit you can also generate code to invoke and define types at runtime.



  11. VB.NET uses .NET framework class library along with specialized VB library (System.VisualBasic) as a standard library and so that the standard library for VB.NET is much enhanced and useful compared to VB6 standard library



  12. VB.NET is platform independent because of .Net framework and programs written in VB.NET can run on any platform where .Net framework is present. The platform include both software (operating system) and hardware platforms.



  13. VB.NET also supports language interoperability with various .NET compliant languages and this means that you can use and enhance the code written in other .NET compliant languages. Similarly the code written in VB.NET can also be used and enhanced by other .NET compliant languages. Although VB6 also provided this functionality through COM but it was limited and difficult to use and manage. VB.Net makes it easier because of the presence of Intermediate Language (IL) and Common Language Specification (CLS) of the .NET architecture.



  14. VB6 uses COM (Component Object Model) as component architecture where as VB.NET uses assemblies as its component architecture and the Assemblies architecture has removed a lot of problems with COM including DLL-Hell and versioning problem.



  15. Components created in VB6 (COM) need to update and make registry entries. VB.NET does not require any registry entry whic makes the deployment easier

  16. VB6 used ASP to build web applications where as VB.NET uses ASP.NET to build web applications.



  17. VB6 used record-sets and ADODB to implement data access applications where as VB.NET uses ADO.NET and datasets to build data access applications.And also the ADO.NET also supports the disconnected data access.






Advantages of Using VB.NET

  1. Problems Solved effectively and easily.



  2. Build Robust Windows-based Applications.

    With new Windows Forms whic is avialable in the Windows operating system developers using Visual Basic .NET can build Windows-based applications that leverage the rich user interface features available. All the rapid application development (RAD) tools that developers have come to expect from Microsoft are found in Visual Basic .NET, including code behind forms and drag-and-drop design. In addition, new features such as automatic control resizing eliminate the need for complex resize code. New controls such as the in-place menu editor deliver visual authoring of menus directly within the Windows Forms Designer. Combined with greater application responsiveness, as well as simplified localization and accessibility and these new features in Windows Forms make Visual Basic .NET the choice for today's Visual Basic developers.



  3. Resolve Deployment and Versioning Issues Seamlessly.

    Visual Basic .NET delivers the answer to all of your application maintenance and setup problems. With Visual Basic .NET, issues with Component Object Model (COM) registration and DLL overwrites are relics of the past and side-by-side versioning prevents the overwriting and corruption of existing components and applications.



  4. XCOPY deployment

    XCOPY deployment enables Windows-based applications to be deployed to client machines simply by copying files into the desired application directory and in addition, the auto-downloading of applications for Windows makes the deployment of rich Windows-based applications as easy as deploying a Web page.



  5. Create Web Applications with a Zero Learning Curve.

    In Visual Basic .NET,using the new Web Forms Designer,Visual Basic developers can apply the skills they have today to build true thin-client Web-based applications. Drag-and-drop Web Form creation delivers Visual Basic for the Web while code behind forms enables developers to replace limited scripting capabilities of the past with the full power of the Visual Basic .NET language. New intelligent rendering capabilities and server-side Web Forms controls provide Web applications that render on any browser running on any platform. The new HTML designer delivers Microsoft IntelliSense® statement and tag completion for HTML documents. In addition, separation of HTML markup and code enable more efficient team-based development.



Be the first one to comment on this page.




  VB.NET eBooks
More Links » »
 
 VB.NET FAQs
More Links » »
 
 VB.NET Interview Questions
More Links » »
 
 VB.NET Articles
More Links » »
 
 VB.NET News
More Links » »
 
 VB.NET Jobs
More Links » »

Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

home Next

Keywords: visual basic scripts, visual basic script, visual basic activex script, visual basic transformation script, visual basic script tutorial, visual basic script reference, visual basic script file, source code basic, visual basic tutorial, visual basic scripting, visual basic javascript, vbscript scripts, asp scripts, visual basic functions, javascript scripts, visual basic byval, visual basic timer

HTML Quizzes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
CSS 1.0 Quiz
CSS 2.0 Quiz
HLML Quiz
XML Quizzes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizzes
JavaScript Quiz
VBScript Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizzes
ASP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
CVS Quiz
Python Quiz
Apple Script Quiz
PL/SQL Quiz
SQL Server Quiz
PHP Quiz
.NET (dotnet) Quizzes
Microsoft.Net Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
VC++ Quiz
Multimedia Quizzes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Photoshop Quiz
Gimp Quiz
Matlab Quiz
Gnuplot Programming Quiz
GIF Animation Quiz
Scientific Visualization Quiz
Graphics Quiz
Web Building Quizzes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Weblogic Quiz
SEO Quiz
Web Site Hosting Quiz
Domain Name Quiz
Java Quizzes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Eclipse Quiz
J2ME Quiz
JBOSS Quiz
Programming Langauges Quizzes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Cobol Quiz
Assembly Language Quiz
Mainframe Quiz
Forth Programming Quiz
Lisp Programming Quiz
Pascal Quiz
Delphi Quiz
Fortran Quiz
OOPs Quiz
Data Warehousing Quiz
CGI Programming Quiz
Emacs Quiz
Gnome Quiz
ILU Quiz
Soft Skills Quizzes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz
Database Quizzes
Oracle Quiz
MySQL Quiz
Operating System Quizzes
BSD Quiz
Symbian Quiz
Unix Quiz
Internet Quiz
IP-Masquerading Quiz
IPC Quiz
MIDI Quiz
Software Testing Quizzes
Testing Quiz
Firewalls Quiz
SAP Module Quizzes
ERP Quiz
ABAP Quiz
Business Warehousing Quiz
SAP Basis Quiz
Material Management Quiz
Sales & Distribution Quiz
Human Resource Quiz
Netweaver Quiz
Customer Relationship Management Quiz
Production and Planning Quiz
Networking Programming Quizzes
Corba Quiz
Networking Quiz
Microsoft Office Quizzes
Microsoft Word Quiz
Microsoft Outlook Quiz
Microsoft PowerPoint Quiz
Microsoft Publisher Quiz
Microsoft Excel Quiz
Microsoft Front Page Quiz
Microsoft InfoPath Quiz
Microsoft Access Quiz
Accounting Quizzes
Financial Accounting Quiz
Managerial Accounting Quiz
Testimonials | Contact Us | Link to Us | Site Map
Copyright ? 2008. Academic Tutorials.com. All rights reserved Privacy Policies | About Us
Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Interview Questions | Discussions World | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Indian Free Ads | Jobs Assist | New Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Webhosting in India | Dedicated Server in India | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Testing Interview Questions | Tests World | The Galz | Top Masala | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World | Important Websites
Copyright ? 2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved.