2-Vb.net Basic Concepts and structure of .net code.pptx

Usama182938 33 views 11 slides Jan 31, 2024
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

we discus about the basic concepts of visual basic .net


Slide Content

Vb .net Basic Concepts By:Muhammad Adeel Afzal

VB.Net - Program Structure VB.Net Hello World Example A VB.Net program basically consists of the following parts: Namespace declaration A class or module One or more procedures Variables The Main procedure Statements & Expressions Comments

Basi c Program Example Imports System Module Module1 'This program will display Hello World Sub Main() Console.WriteLine ("Hello World") Console.ReadKey () End Sub End Module

Compile & Execute VB.Net Program Start Visual Studio. On the menu bar, choose File → New → Project. Choose Visual Basic from templates Choose Console Application. Specify a name and location for your project using the Browse button, and then choose the OK button. The new project appears in Solution Explorer. Write code in the Code Editor. Click the Run button or the F5 key to run the project. A Command Prompt window appears that contains the line Hello World.

VB.Net - Basic Syntax

Data Types in VB.Net

Operators An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provide the following types of operators − Arithmetic Operators Relational Operators Logical Operators Assignment Operators

Arithmetic Operators

Relational Operators

Logical Operators

Assignment Operators
Tags