2-Vb.net Basic Concepts and structure of .net code.pptx
Usama182938
33 views
11 slides
Jan 31, 2024
Slide 1 of 11
1
2
3
4
5
6
7
8
9
10
11
About This Presentation
we discus about the basic concepts of visual basic .net
Size: 224 KB
Language: en
Added: Jan 31, 2024
Slides: 11 pages
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