VB.NET Tutorial
About the Tutorial
is a simple, modern, object-oriented computer programming language developed by Microsoft to combine the power of .NET Framework and the common language runtime with the productivity benefits that are the hallmark of Visual Basic. This tutorial will teach you basic programming and will also take you through various advanced concepts related to programming language.
Audience
This tutorial has been prepared for the beginners to help them understand basic programming. After completing this tutorial, you will find yourself at a moderate level of expertise in programming from where you can take yourself to next levels.
Prerequisites
programming is very much based on BASIC and Visual Basic programming languages, so if you have basic understanding on these programming languages, then it will be a fun for you to learn programming language.
Copyright & Disclaimer
? Copyright 2015 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book can retain a copy for future reference but commercial use of this data is not allowed. Distribution or republishing any content or a part of the content of this e-book in any manner is also not allowed without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at contact@
Table of Contents
About the Tutorial...................................................................................................................................1
2
Audience .................................................................................................................................................1 Prerequisites ...........................................................................................................................................1 Copyright & Disclaimer............................................................................................................................1 Table of Contents ....................................................................................................................................2
1. ? OVERVIEW ...........................................................................................................8
Strong Programming Features .....................................................................................................8
2. ? ENVIRONMENT SETUP ....................................................................................... 10
The .Net Framework .............................................................................................................................10 Integrated Development Environment (IDE) For .......................................................................11 Writing Programs on Linux or Mac OS .......................................................................................11
3. ? PROGRAM STRUCTURE ...................................................................................... 12
Hello World Example.................................................................................................................12 Compile & Execute Program......................................................................................................13
4. ? BASIC SYNTAX ....................................................................................................15
A Rectangle Class in ...................................................................................................................15 Identifiers .............................................................................................................................................. 17 Keywords ..................................................................................................................................17
5. ? DATA TYPES........................................................................................................19
Data Types Available in .............................................................................................................19 Example ................................................................................................................................................21 The Type Conversion Functions in .............................................................................................22 Example ................................................................................................................................................24
6. ? VARIABLES..........................................................................................................25
3
Variable Declaration in ..............................................................................................................25 Variable Initialization in ............................................................................................................27 Example ................................................................................................................................................27 Accepting Values from User ..................................................................................................................28 Lvalues and Rvalues ..............................................................................................................................28
7. ? CONSTANTS AND ENUMERATIONS ....................................................................30
Declaring Constants ..............................................................................................................................30 Example ................................................................................................................................................31 Print and Display Constants in ...................................................................................................31 Declaring Enumerations ........................................................................................................................32 Example ................................................................................................................................................33
8. ? MODIFIERS.........................................................................................................35
List of Available Modifiers in .....................................................................................................35
9. ? STATEMENTS......................................................................................................40
Declaration Statements.........................................................................................................................40 Executable Statements..........................................................................................................................44
10. ? DIRECTIVES.........................................................................................................45
Compiler Directives in ...............................................................................................................45
11. ? OPERATORS........................................................................................................50
Arithmetic Operators ............................................................................................................................50 Example ................................................................................................................................................51 Comparison Operators ..........................................................................................................................52 Logical/Bitwise Operators .....................................................................................................................54
4
Example ................................................................................................................................................55 Bit Shift Operators ................................................................................................................................57 Example ................................................................................................................................................59 Assignment Operators...........................................................................................................................60 Example ................................................................................................................................................61 Miscellaneous Operators ......................................................................................................................62 Example ................................................................................................................................................63 Operators Precedence in ...........................................................................................................64 Example ................................................................................................................................................65
12. ? DECISION MAKING ............................................................................................. 67
If...Then Statement ...............................................................................................................................68 If...Then...Else Statement ......................................................................................................................70 The If...Else If...Else Statement ..............................................................................................................71 Nested If Statements.............................................................................................................................73 Select Case Statement...........................................................................................................................74 Nested Select Case Statement...............................................................................................................76
13. ? LOOPS ................................................................................................................78
Do Loop.................................................................................................................................................79 For...Next Loop......................................................................................................................................82 Each...Next Loop ...................................................................................................................................85 While... End While Loop ........................................................................................................................86 With... End With Statement ..................................................................................................................88 Nested Loops ........................................................................................................................................89 Loop Control Statements.......................................................................................................................91
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- about the tutorial
- the python guide for beginners
- introduction to visual basic programming
- visual basic 2017 made easy
- beginner s programming tutorial in qbasic
- learning to program with visual basic and net gadgeteer
- arduino for beginners
- c programming tutorial
- purebasic a beginner s guide to computer programming
- tutorial