SlideShare a Scribd company logo
1 of 25
Download to read offline
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
28-11-2014 ANKIT VERMA 2
.NET IDE
Prof.Prachi Sasankar VB.Net Unit-1
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
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
28-11-2014 5
 HOW TO WRITE
AN APPLICATION
Prof.Prachi Sasankar VB.Net Unit-1
How to Write Application
 Start  Visual Studio 2010
 ( you will see the start Page as below)
6
Prof.Prachi Sasankar VB.Net Unit-1
 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
Step 2: Check Toolbox, Form1.vb (design tab, Solution
Explorer, Properties Window.
Prof.Prachi Sasankar VB.Net Unit-1
Step 3:
9
 Write Code of program in Code window.
 Save Code by
click File  Save All
 Press F5 & Run
Prof.Prachi Sasankar VB.Net Unit-1
Types of
PROJECT TEMPLATE
1
0
28-11-2014Prof.Prachi Sasankar VB.Net Unit-1
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
 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
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
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
DATA TYPE in VB.Net
2228-11-2014Prof.Prachi Sasankar VB.Net Unit-1
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
How to declare
VARIABLES
1728-11-2014Prof.Prachi Sasankar VB.Net Unit-1
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
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
Different Access Control
20
 Public
 Private
 Protected
 Friend
 Protected Friend
Prof.Prachi Sasankar VB.Net Unit-1
OPERATORS in .Net
2128-11-2014 Prof.Prachi Sasankar VB.Net Unit-1
Arithmetic Operator
22
OPERATOR OPERATION
+ Addition
- Subtraction
* Multiplication
/ Float Division
 Integer Division
^ Exponentiation
Mod Remainder
Prof.Prachi Sasankar VB.Net Unit-1
Comparison Operator
23
OPERATOR OPERATION
< Less Than
> Greater Than
= Equality Checking
<> Not Equal To
Prof.Prachi Sasankar VB.Net Unit-1
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
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

More Related Content

What's hot

Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
Intro to Software Engineering - Software Testing
Intro to Software Engineering - Software TestingIntro to Software Engineering - Software Testing
Intro to Software Engineering - Software Testing
Radu_Negulescu
 
2.2. language evaluation criteria
2.2. language evaluation criteria2.2. language evaluation criteria
2.2. language evaluation criteria
annahallare_
 
Manual Testing Questions
Manual Testing QuestionsManual Testing Questions
Manual Testing Questions
User1test
 
documentation-testing.ppt
documentation-testing.pptdocumentation-testing.ppt
documentation-testing.ppt
Gaurav Nigam
 
Software Testing - Day One
Software Testing - Day OneSoftware Testing - Day One
Software Testing - Day One
Govardhan Reddy
 
Software development slides
Software development slidesSoftware development slides
Software development slides
iarthur
 
Testing Tool Evaluation Criteria
Testing Tool Evaluation CriteriaTesting Tool Evaluation Criteria
Testing Tool Evaluation Criteria
basma_iti_1984
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
Krishna Sujeer
 

What's hot (19)

Testing
TestingTesting
Testing
 
Software testing methods
Software testing methodsSoftware testing methods
Software testing methods
 
Coding principles
Coding principles Coding principles
Coding principles
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
Intro to Software Engineering - Software Testing
Intro to Software Engineering - Software TestingIntro to Software Engineering - Software Testing
Intro to Software Engineering - Software Testing
 
2.2. language evaluation criteria
2.2. language evaluation criteria2.2. language evaluation criteria
2.2. language evaluation criteria
 
Manual Testing Questions
Manual Testing QuestionsManual Testing Questions
Manual Testing Questions
 
documentation-testing.ppt
documentation-testing.pptdocumentation-testing.ppt
documentation-testing.ppt
 
Software Testing - Day One
Software Testing - Day OneSoftware Testing - Day One
Software Testing - Day One
 
Software testing (2)
Software testing (2)Software testing (2)
Software testing (2)
 
Software development slides
Software development slidesSoftware development slides
Software development slides
 
Coding
CodingCoding
Coding
 
Loc and function point
Loc and function pointLoc and function point
Loc and function point
 
Quiz3 tonghop
 Quiz3 tonghop Quiz3 tonghop
Quiz3 tonghop
 
Types of test tools
Types of test toolsTypes of test tools
Types of test tools
 
7 stages of unit testing
7 stages of unit testing7 stages of unit testing
7 stages of unit testing
 
Testing Tool Evaluation Criteria
Testing Tool Evaluation CriteriaTesting Tool Evaluation Criteria
Testing Tool Evaluation Criteria
 
Software testing strategies
Software testing strategiesSoftware testing strategies
Software testing strategies
 
Line Of Code(LOC) In Software Engineering By NADEEM AHMED FROM DEPALPUR
Line Of Code(LOC) In Software Engineering By NADEEM AHMED FROM DEPALPURLine Of Code(LOC) In Software Engineering By NADEEM AHMED FROM DEPALPUR
Line Of Code(LOC) In Software Engineering By NADEEM AHMED FROM DEPALPUR
 

Similar to Ide and datatypes vb-net-u-ii-p2

Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)
Mark Vincent Cantero
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan
 

Similar to Ide and datatypes vb-net-u-ii-p2 (20)

Pa 10 n1 louis decroo jr.
Pa 10 n1 louis decroo jr.Pa 10 n1 louis decroo jr.
Pa 10 n1 louis decroo jr.
 
Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)
 
BCA IPU VB.NET UNIT-II
BCA IPU VB.NET UNIT-IIBCA IPU VB.NET UNIT-II
BCA IPU VB.NET UNIT-II
 
C# p1
C# p1C# p1
C# p1
 
Visual basic
Visual basicVisual basic
Visual basic
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Software Portfolio - SetFocus
Software Portfolio - SetFocusSoftware Portfolio - SetFocus
Software Portfolio - SetFocus
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming
 
Working in Visual Studio.Net
Working in Visual Studio.NetWorking in Visual Studio.Net
Working in Visual Studio.Net
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
 

More from Prachi Sasankar

More from Prachi Sasankar (13)

Software metrics
Software metricsSoftware metrics
Software metrics
 
St all about test case-p3
St all about test case-p3St all about test case-p3
St all about test case-p3
 
Importance of E- commerce
Importance of E- commerceImportance of E- commerce
Importance of E- commerce
 
Wireless application protocol
Wireless application protocolWireless application protocol
Wireless application protocol
 
Ecomm-History and Overview
Ecomm-History and OverviewEcomm-History and Overview
Ecomm-History and Overview
 
E-Comm-overview
E-Comm-overviewE-Comm-overview
E-Comm-overview
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
 
Unix shell programming intro-part-1
Unix shell programming intro-part-1Unix shell programming intro-part-1
Unix shell programming intro-part-1
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
I ntroduction to software testing part1
I ntroduction to software testing part1I ntroduction to software testing part1
I ntroduction to software testing part1
 
Ty bca-sem-v-introduction to vb.net-i-uploaded
Ty bca-sem-v-introduction to vb.net-i-uploadedTy bca-sem-v-introduction to vb.net-i-uploaded
Ty bca-sem-v-introduction to vb.net-i-uploaded
 
Software Engineering Overview
Software Engineering OverviewSoftware Engineering Overview
Software Engineering Overview
 

Recently uploaded

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[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
  • 2. 28-11-2014 ANKIT VERMA 2 .NET IDE Prof.Prachi Sasankar VB.Net Unit-1
  • 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
  • 8. Step 2: Check Toolbox, Form1.vb (design tab, Solution Explorer, Properties Window. Prof.Prachi Sasankar VB.Net Unit-1
  • 9. Step 3: 9  Write Code of program in Code window.  Save Code by click File  Save All  Press F5 & Run 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
  • 21. OPERATORS in .Net 2128-11-2014 Prof.Prachi Sasankar VB.Net Unit-1
  • 22. Arithmetic Operator 22 OPERATOR OPERATION + Addition - Subtraction * Multiplication / Float Division Integer Division ^ Exponentiation Mod Remainder Prof.Prachi Sasankar VB.Net Unit-1
  • 23. Comparison Operator 23 OPERATOR OPERATION < Less Than > Greater Than = Equality Checking <> Not Equal To 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