Professional Documents
Culture Documents
VB .NET
Visual Basics
Using .NET
Programming
Framework
Language
VB(Visual Basics)
• It is a object oriented programming language designed by
Microsoft in May 1991.
• With the word basic being in the name of the language, you
can already see that this is a language for beginners.
(Because the syntax of this language is easy and you will not
find yourself writing hundreds of lines of code.)
•VB is designed to make software development easy and
efficient.
•VB is not a case sensitive like other languages such as C++ and
Java.
• The first version of .NET framework was released in the year 2002(Version
was 1.0)
• Total 96+ languages are available that we can use with .NET framework.
Language
VB Compiler C# Compiler
specific compiler
MSIL OR IL
(Microsoft Intermediate language or Intermediate Language)
CLR(Common
JIT Language runtime)
Native Code
• Language:- Language which you are currently working on.
When you compile .NET program using any .NET compliant language, it
does not get converted into the executable binary code but to an
intermediate code called MSIL or IL,understandable by CLR.
CLR resides above the OS and handles the execution of all .NET
applications. Programs don’t directly communicate with the OS but go
through the CLR
CLR SERVICES:-
1)IL To Native code
2)Exception Handling
3)Garbage Collection
• JIT(Just In Time Compiler)-
Rather than using time and memory to convert all the MSIL code to native
code, it converts the MSIL as it is needed during execution.
(EX- when a function is called, the IL of the function’s body is converted into
native code just in time.)
if some IL code is converted into native code, then the next time it is
needed, the CLR reuses the same i.e. already compiled copy without re-
compiling.
This native code is specific to the computer environment that the JIT
compiler runs on.
Three types of JIT Compiler
1)Pre-JIT Compiler-
All the source code is compiled into the machine code at the same time in a
single compilation cycle using pre-JIT compiler. This compilation process is
performed at application deployment time.
Language
Source Code MSIL/IL
Compiler
CLR
Execution
• Coding Part:- Double click on the tool for which you want to
write code. ( Shortcut-Press F7 to open code part)
• Run:- Click on start button in Toolbar to run program or
(Shortcut to run program- F5 for Windows application and
ctrl+ F5 For console application)
VB.Net IDE
• Steps to start
Open Visual Studio New Project
Templates( Visual Basics) Windows form
application/ Console Application Name of
project Location to save your project Ok
3.System Namespace
• Namespace is the logical grouping of classes and interfaces
based on their functionalities and usability to which they
should belong.
– System
– System. Collection
– System.IO
– System. Text
– System. Data
– System. Drawing
– System. Threading
– System. Windows. Form
– System. Xml
3.Events and Event Handling
• Events are basically the actions performed by the user like
mouse click, key press Etc.