0% found this document useful (0 votes)
77 views16 pages

Programming With Visual: Fundamentals of Programming Lecture # 1 Tariq Ibn Aziz

This document provides an overview of Visual Basic .NET programming fundamentals, including the evolution of computer languages, compiling and running programs, the .NET development environment, object-oriented programming concepts, namespaces, class libraries, and the .NET framework. It also discusses Visual Basic program statements, syntax, and semantics and provides an example of a simple "Hello World" style VB.NET application and using ILDASM to view the compiled assembly.

Uploaded by

tariqibnaziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views16 pages

Programming With Visual: Fundamentals of Programming Lecture # 1 Tariq Ibn Aziz

This document provides an overview of Visual Basic .NET programming fundamentals, including the evolution of computer languages, compiling and running programs, the .NET development environment, object-oriented programming concepts, namespaces, class libraries, and the .NET framework. It also discusses Visual Basic program statements, syntax, and semantics and provides an example of a simple "Hello World" style VB.NET application and using ILDASM to view the compiled assembly.

Uploaded by

tariqibnaziz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 16

Programming with Visual

Basic .NET
Fundamentals of Programming

Lecture # 1

Tariq Ibn Aziz

Compunet Corporation 1
Evolution of computer languages

Compunet Corporation 2
Running a program

Compunet Corporation 3
Program Forms
• Program exist in two forms
– Source code (“hello.vb” text form of program)
– Object code (“hello.exe”executed by the computer)
• .NET compiler produce an object file that contain
intermediate code.

Compunet Corporation 4
Compiling a program

Compunet Corporation 5
Visual Studio.NET Development
Environment
• In Visual Studio.NET 2005,
many project templates are
available, such as:
– Console Application
– Window Application
– Windows Services
– ASP.NET Web Application
– Smart Device Application

Compunet Corporation 6
Object Oriented Programming

• Visual Basic .NET is an Object-Oriented


Programming Language
• Object contains
– data,
– method and
– constructor

Compunet Corporation 7
Namespaces
• Namespace organizes base class libraries
• Top namespace is System
• All Windows Forms inherits the
System.Windows.Forms.Form namespace

Compunet Corporation 8
VB.NET Class Libraries
• VB.NET provides a number of libraries of utility classes
and methods

• System
• System.Console
• System.Data
• System.IO.File
• System.Web
• System.Windows

Compunet Corporation 9
The .NET Framework
• An architectural model for creating programs that interface with the operating
system and base class libraries

• Contains a hierarchical set of Base Class Libraries

Compunet Corporation 10
Program Statements
• “A program statement is any combination of Visual Basic
keywords, properties, functions, operators, and symbols
that (make up) a valid instruction for the Visual Basic
compiler. (see p. 127)

• For example:

End
Label1.Text = TimeString

Compunet Corporation 11
Program Statements
• Syntax means the rules used to distinguish valid
statements from invalid ones.
• Syntax is like grammar in English.
• If the syntax is not correct, the compiler will give
you an error when you build your program.
• It’s possible to write a statement with good syntax
but bad semantics (meaning). This may result in
run-time errors.

Compunet Corporation 12
VB.NET Application
• Use notepad editor to write this VB.NET program, call
ILoveVB.vb
• VB.NET is not case sensitive, so be sure while writing the
filename and class name

Compunet Corporation 13
VB.NET Application
• Compile the program • Output

c:\> vbc ILoveVB.vb I Love VB …

• Run your program

c:\> ILoveVB

Compunet Corporation 14
IL Disassembler (ILDASM)
• View assembly using ILDASM

• Displays intermediate language

• Can view information about namespaces,


classes, and other programming structures

Compunet Corporation 15
Using the ILDASM
Compunet Corporation 16

You might also like