Chapter 1 - Introduction To VB - Net Programming
Chapter 1 - Introduction To VB - Net Programming
VISUAL PROGRAMMING
What is .NET??
Software platform
In other words:
.NET is not a language (Runtime and a library for writing
and executing written programs in any compliant
language)
Introduction
Visual Basic .NET support in Visual Studio .NET, with
project templates, designers, and other features of the
development environment.
Visual Basic .NET has many improved language
features, such as inheritance, interfaces, and
overloading that make it a powerful object-oriented
programming language.
VB.NET support multithreading and exception
handling.
What is .Net Framework
• Runs primarily on Microsoft Windows.
• Includes a large library and supports several programming
languages.
• Programs written for the .NET Framework execute in a software
environment, known as the Common Language Runtime (CLR)
• Provides user interface, data access, database connectivity, web
application development and network communications.
.Net History
Key Points
1) The CLR environment is a managed environment.
2) The .Net framework provides a choice of development
languages.
3) The .Net framework class library implements the .Net
framework.
Common Language Insfrastructure
Common Language Infrastructure (CLI)
Enables an application program written in any of several
commonly-used programming languages .
Common Language Infrastructure has been accepted as an open
standard by ECMA, an international organization for the
promotion of technology standards.
Common Language Infrastructure specifies:
• A common set of data types that any language must support (the
Common Type System - CTS)
• An introduction to the component structure
• How the machine state is managed
• How exceptions are handled
Assemblies
An assembly in the Common Language Infrastructure (CLI) is a
compiled code library used for deployment, versioning, and
security.
It is provides:
-> a fundamental unit of physical code grouping.
-> a fundamental unit of logical code grouping.
Unified Classes
Web Classes (ASP.NET)
Controls, Caching, Security, Session, Configuration etc
System Classes
Collections, Diagnostics, Globalization, IO, Security,
Threading Serialization, Reflection, Messaging etc
Class Library
The .NET Framework includes classes, interfaces and value
types that optimize the development process and provide access
to system functionality.
The .NET Framework types are the foundation on which .NET
applications, components, and controls are built. The .NET
Framework includes types that perform the following
functions:
Represent base data types and exceptions.
Encapsulate data structures.
Perform I/O.
Access information about loaded types.
Invoke .NET Framework security checks.
Provide data access, rich client-side GUI, and server-
controlled, client-side GUI.
Memory Management
IntelliSense
Help about the code usage, keep track of the parameters, and add
calls to properties and methods with only a few keystrokes, Eg; List
Members, Parameter Info, Quick Info, and Complete Word.
Data Binding
.Net provides a simple way to display and interact with data.
Support multiple language
Since CLR works like a virtual machine in executing all common
languages (refer previous slide). A code can call or use a function
written in another language. Eg; VB.NET, C#, COBOL, Perl and etc.
Integrated Development Environment (IDE)
Code view
Integrated Development Environment (IDE)
Toolbox
is a palette of developer objects, or
controls, that are placed on forms or
web pages and then code is added to
allow the user to interact with them.
An example would be TextBox, Button
and ListBox controls. With these three
controls added to a Windows Form
object the developer could write code
that would take text, input by the
application user, and added to the
ListBox after the button was clicked.
Integrated Development Environment (IDE)
Solution Explorer
This is a section that is used to view
and modify the contents of the project.
A Visual Studio Windows Application
Project will generally have a Form
object with a code page, references to
System components and possibly other
modules with special code that is used
by the application.
Integrated Development Environment (IDE)
Properties Windows
The properties windows shows all the
control (like textbox) properties to be
change at design time.
Most of this properties can be change
at run time with some code, but
basically most of this properties
change the way the control is display
on your application.
Integrated Development Environment (IDE)
Design view
Code view