Introduction to VB.NET Language

Introduction to VB.NET Language

A. Object Oriented Programming
 
is a fundamental way of cp that uses "objects" and their interactions to design applications and computer programs. Programming techniques may include features such as encapsulation, modularity, polymorphism, and inheritance. It was not commonly used in mainstream software application development until the early 1990s. Many modern programming languages now support OOP.

OOP Fundamental concepts

  • Class
  • Object
  • Instance
  • Method
  • Message passing
  • Inheritance
  • Encapsulation
  • Abstraction
  • Polymorphism
 
B.     Microsoft .NET Framework
 
Microsoft .NET Framework is a software component that is a part of several Microsoft Windows operating systems. It has a large library of pre-coded solutions to common programming problems and manages the execution of programs written specifically for the framework. The .NET Framework is a key Microsoft offering and is intended to be used by most new applications created for the Windows platform.
 
Architecture Microsoft .NET Framework
The core aspects of the .NET framework lie within the Common Language Infrastructure, or CLI. The purpose of the CLI is to provide a language-agnostic platform for application development and execution, including functions for exception handling, garbage collection, security, and interoperability. Microsoft's implementation of the CLI is called the Common Language Runtime or CLR. The CLR is composed of four primary parts:
  • Common Type System (CTS)
  • Common Language Specification (CLS)
  • Metadata
  • Virtual Execution System (VES)

 
C.     CLR, CTS, Class Library
 
CLR
Common Language Runtime (CLR) is the virtual machine component of Microsoft's .NET initiative. It is Microsoft's implementation of the Common Language Infrastructure (CLI) standard, which defines an execution environment for program code. The CLR runs a form of bytecode called the Common Intermediate Language (CIL, previously known as MSIL -- Microsoft Intermediate Language).
Developers using the CLR write code in a language such as C# or VB.Net. At compile time, a .NET compiler converts such code into CIL code. At runtime, the CLR's just-in-time compiler (JIT compiler) converts the CIL code into code native to the operating system. Alternatively, the CIL code can be compiled to native code in a separate step prior to runtime. This speeds up all later runs of the software as the CIL-to-native compilation is no longer necessary.
CTS
The Common Type System (CTS) is a standard that specifies how Type definitions and specific values of Types are represented in computer memory. It is intended to allow programs written in different programming languages to easily share information. As used in programming languages, a Type can be described as a definition of a set of values (for example, "all integers between 0 and 10"), and the allowable operations on those values (for example, addition and subtraction).
The specification for the CTS is contained in Ecma standard 335, "Common Language Infrastructure (CLI) Partitions I to VI." The CLI and the CTS were created by Microsoft, and the Microsoft .NET framework is an implementation of the standard.
Class Library
library is a collection of subroutines used to develop software. Libraries contain code and data that provide services to independent programs. This allows code and data to be shared and changed in a modular fashion. Some executables are both standalone programs and libraries, but most libraries are not executables. Executables and libraries make references known as links to each other through the process known as linking, which is typically done by a linker.
The Framework Class Library (FCL) is a standard library available to all languages using the .NET Framework. The FCL is a collection of 2,500 reusable classes (within 242 namespaces), interfaces and value types.
 
D.     Namespace
 
A namespace is an abstract container or environment created to hold a logical grouping of unique identifiers (i.e., names). An identifier defined in a namespace is associated with that namespace. The same identifier can be independently defined in multiple namespaces. That is, the meaning associated with an identifier defined in one namespace may or may not have the same meaning as the same identifier defined in another namespace. Languages that support namespaces specify the rules that determine to which namespace an identifier (i.e., not its definition) belongs.
The System namespace contains classes for such broad ranging things as:
  • Data types
  • Data type conversions
  • Method-parameter manipulation
  • Events and event handlers
  • Mathematics
  • Program invocation
  • Application-environment management
 
Other Name Space
  1. System
  2. System.CodeDom
  3. System.Collections
  4. System.ComponentModel
  5. System.Configuration
  6. System.Data
  7. System.Deployment
  8. System.Diagnostics
  9. System.DirectoryServices
  10. System.Drawing
  11. System.EnterpriseServices
  12. System.Globalization
  13. System.IO
  14. System.Management
  15. System.Media
  16. System.Messaging
  17. System.Net
  18. System.Linq
  19. System.Linq.Expressions
  20. System.Reflection
  21. System.Resources
  22. System.Runtime
  23. System.Security
  24. System.ServiceProcess
  25. System.Text
  26. System.Threading
  27. System.Timers
  28. System.Transactions
  29. System.Web
  30. System.Windows.Forms
  31. System.Xml
 
E.     Visual Studio.NET IDE (Integreted Development Environment)

 
IDE Visual Studio.NET Element:
a.      Menu
b.      Toolbox
c.      Solution Explorer
d.      Properties
e.      Pending Checking
 
 Template Project Visual Basic:
1.      Windows Application
2.      Class Library
3.      Console Application
4.      Windows Control Library
5.      Crystal Reports
6.      Device Application
 
F.      Console Application

No comments: