This document discusses the integrated development environment (IDE) for Visual Basic .NET. It describes several key elements of the IDE, including the Windows Form Designer, Properties Window, Solution Explorer, Toolbox, and other features. It provides details on how to create a new VB.NET project and application, including selecting a project template, writing code in the code editor, and running the application. Finally, it covers various data types, variables, operators, and other fundamental concepts in VB.NET.
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Ide and datatypes vb-net-u-ii-p2
1. VisualBasic.NET
B y : P r o f . P R A C H I S A S A N K A R
S A D A B A I R A I S O N I W O M E N ’ S
C O L L E G E , N A G P U R .
U N I T – I
Part 2
3. Elements Of IDE
3
Windows Form Designer
Add control to form, arrange them & add code.
Properties Window
Lists properties associated with control.
Solution Explorer
Display solution name, project name, form name, fields etc.
Tool Box
Provide controls like form, data, components, toolbar, menu etc.
Object Browser
Shows the members of object
Prof.Prachi Sasankar VB.Net Unit-1
4. Elements Of IDE
4
Task List Window
List of errors in source code.
Server Explorer
Database connectivity, display tables, views, connections etc.
Dynamic Help
Context sensitive help.
Class View
Display Classes , methods, properties etc.
Code & Text Editor Window
Allow to enter and edit code
Prof.Prachi Sasankar VB.Net Unit-1
5. 28-11-2014 5
HOW TO WRITE
AN APPLICATION
Prof.Prachi Sasankar VB.Net Unit-1
6. How to Write Application
Start Visual Studio 2010
( you will see the start Page as below)
6
Prof.Prachi Sasankar VB.Net Unit-1
7. File New Project Select Language VB.NET
Choose Template Windows Forms Application
Provide
Project Name
7
How to open New Application
Prof.Prachi Sasankar VB.Net Unit-1
11. Project Templates Types :
11
Window Application
It Creates application with windows interface with .Net
platform.
Class Library
It Creates classes to use in other application with .Net
platform..
Console Application
It Creates command line application with .Net
platform..
Window Control Library
It Creates control for applications with .Net platform.
Prof.Prachi Sasankar VB.Net Unit-1
12. 12
Empty Project
It Creates local application with .Net platform.
Window Service
It Creates window service with .Net platform
Templates….(continued)
Prof.Prachi Sasankar VB.Net Unit-1
13. Terms you must know :
13
Design Tab
Environment where application being developed.
Run Time
Execution time of application.
Forms
Basic element for creating user interface for application.
Controls
Used to Manipulate information.
Properties
Control characteristics of objects like color, caption, size etc.
Prof.Prachi Sasankar VB.Net Unit-1
14. Continued…
14
Methods
Actions that can be performed by object
Events
Action recognized by form or control.
Generated by user, OS or application.
Prof.Prachi Sasankar VB.Net Unit-1
15. DATA TYPE in VB.Net
2228-11-2014Prof.Prachi Sasankar VB.Net Unit-1
16. Data Types Supported In VB.NET
Character Data Type
Char
String
Other Data Type
Boolean
Date
User Defined Data Type
e.g. Structure
23
Number Data Types
Byte
Short
Integer
Long
Single
Double
Decimal
Prof.Prachi Sasankar VB.Net Unit-1
18. Variables in .Net
18
Variables Are Area In Memory Referred By Name Or
Identifier During Program Execution.
Dim a As Integer = 15
Dim b As Double = 10.15
Multiple Declaration Is Allowed.
Dim a , b As Integer
Constant
Value not change during execution of code.
Const a = 50
Identifier
Building block of programming language.
Prof.Prachi Sasankar VB.Net Unit-1
19. Scope Of Variables
19
Block Scope
If block
Procedure Scope
Function
Module
Class variable accessed by all functions
Namespace Scope
Inside namespace
Shadowing
Same variable name in two procedures.
Scope only in module & accessed as FunctionName.Variable
Prof.Prachi Sasankar VB.Net Unit-1
20. Different Access Control
20
Public
Private
Protected
Friend
Protected Friend
Prof.Prachi Sasankar VB.Net Unit-1
24. Assignment Operator
24
OPERATOR OPERATION
= Assignment
+= Addition With Assignment
-= Subtraction With Assignment
*= Multiplication With Assignment
/= Floating Division With Assignment
= Integer Division With Assignment
^= Exponentiation With Assignment
<= Less Than Equal To
>= Greater Than Equal To
Prof.Prachi Sasankar VB.Net Unit-1
25. Logical Operator
25
OPRATOR OPERATION
AND Return True, If Both Operands True
OR Return True, If One or Both Operands True
NOT Return True, If Reverse Logical Value Of
Operand
XOR Return False, If Both Operands Either True Or
False
Prof.Prachi Sasankar VB.Net Unit-1