SlideShare a Scribd company logo
Dr. C.V. Suresh Babu
 Visual Studio 2005
Professional Edition
(Requires Windows XP Pro)
 MSDN Library for
Visual Studio 2005
Available from MSDNAA
 A platform that allows the development and
deployment of desktop and web applications
 Allows user choice of many .NET languages
 May program in One of them
 May create different parts of application in different
languages
▪ Visual Basic
▪ C# (C Sharp)
▪ C++
▪ J++
▪ Etc.
 Integrated Development Environment –
allows the automation of many of the
common programming tasks in one
environment
 Writing the code
 Checking for Syntax (Language) errors
 Compiling and Interpreting(Transferring to
computer language)
 Debugging (Fixing Run-time or Logic Errors)
 Running the Application
 4th Generation Programming Environment /
Development Language
 Based on BASIC language
 Beginners All-Purpose Symbolic Instructional
Code
 Most widely used tool for developing
Windows Applications
 Graphical User Interface (GUI)
 Menus, Buttons, Icons to help the user
 Full Object-Oriented Programming Language
Solution
.NET FrameworkVisual Studio .NET
Project
Common
Language
Runtime
Integrated
Development
Environment
Source files
Visual Basic
compiler
1 2 3
Assembly
Intermediate Language (IL)
Class references
 User creates a new project inVisual Studio
 A solution and a folder are created at the same time with the same name as
the project
 The project belongs to the solution
 Multiple projects can be included in a solution
 Solution
 Contains several folders that define an application’s structure
 Solution files have a file suffix of .sln
 Project: contains files for a part of the solution
 Project file is used to create an executable application
 A project file has a suffix of .vbproj
 Every project has a type (Console,Windows, etc.)
 Every project has an entry point: A Sub procedure named Main or a Form
 Solution folder
 Solution file (.sln)
 Project folder
▪ Project file (.vbproj)
▪ Visual Basic source files (.vb)
▪ My Project folder: contains configuration information
common to all projects
▪ The file AssemblyInfo.vb contains assembly metadata
▪ The References folder contains references to other assemblies
▪ The bin folder contains the executable file produced as a
result of compiling the application
 Select the “Create Project” option from the “Recent
Projects” box on the Start Page
 This is aVisual Basic
GUI object called a form
 Forms are the windows
and dialog boxes that
display when a program
runs.
 A form is an object that
contains other objects
such as buttons, text
boxes, and labels
 Form elements are
objects called controls
 This form has:
 TwoTextBox controls
 Four Label controls
 Two Button controls
 The value displayed by
a control is held in the text property of the control
 Left button text property is Calculate Gross Pay
 Buttons have methods attached to events
Design
WindowT
o
o
l
b
o
x
Solution
Explorer
Properties
Window
 Step 1: Add a Control to the Form – Button
 Look in theToolbox for the Button Control
 Select the Button with the Mouse
 Draw a Rectangle Region in the DesignWindow
by holding the mouse button down
 Release the mouse button to see your button
 (Can also be added by double clicking on the
button in theToolbox)
 Add a Second Button to the Form
 Put it in the lower right corner
 The project now contains
 a form with 2 button
 controls
 Properties
 All controls have properties
 Each property has a value (or values)
 Determine the Look and Feel (and sometimes
behavior) of a Control
 Set initially through the Properties Window
 Properties Set for this Application
 Name
 Text
 The name property establishes a means for
the program to refer to that control
 Controls are assigned relatively meaningless
names when created
 Change these names to something more
meaningful
 Control names must start with a letter
 Remaining characters may be letters, digits,
or underscore
btnCalcGrossPay btnClose
txtHoursWorked
txtPayRate
lblGrossPay
Label1
Label2
Label3
 The label controls use the default names (Label1, etc.)
 Text boxes, buttons, and the Gross Pay label play an
active role in the program and have been changed
 Should be meaningful
 1st 3 lowercase letters indicate the type of control
 txt… forText Boxes
 lbl… for Labels
 btn… for Buttons
 After that, capitalize the first letter of each word
 txtHoursWorked is clearer than txthoursworked
 Change the name property
 Set the name of button1 to btnWelcome
 Set the name of button2 to btnExit
 Click on the Control in the DesignWindow
 Select the appropriate property in the
PropertiesWindow
 Determines the visible text on the control
 Change the text property
 bntWelcome  set to “SayWelcome”
 btnExit  set to “Exit”
 Do not need to include the “ “ in your text field
 Notice how the buttons now display the new text
 The GUI environment is event-driven
 An event is an action that takes place within a
program
 Clicking a button (a Click event)
 Keying in aTextBox (aTextChanged event)
 Visual Basic controls are capable of detecting
many, many events
 A program can respond to an event if the
programmer writes an event procedure
 An Event Procedure is a block of code that
executes only when particular event occurs
 Writing an Event Procedure
 Create the event procedure stub
▪ Double click on control from DesignWindow – for
default event for that control
OR
▪ Open the Code Editor (F7 orView Menu/Code option)
▪ Select Control & Select Event from drop down windows
in Code Editor
 Add the event code to the event procedure stub
 Select the btnWelcome control from the
Form Controls List Box
 Select the Click event from the list of many
available events
 Buttons have 57 possible events they can
respond to
 Beginning of Procedure is created for you
 If you create stub by double clicking on control it
will create a stub for the most commonly used
event for that control
 Write the code that you want executed when
the user clicks on the btnWelcome button
 Type: MsgBox (“Welcome toVisual Basic”)
 Must be contained within the Event Procedure
Stub
 Not Case Sensitive
 Visual Basic will “correct” case issues for you
 Keywords are in Blue
 Special reserved words
 Comments in Green
 Problems with Syntax (Language) will be
underlined in blue
 Rules
 Use spaces to separate the words and operators
 Indentation and capitalization have no effect
 Recommendations
 Use indentation and extra spaces for alignment
 Use blank lines before and after groups of related
statements
 Code all variable declarations at the start of the
procedure
 Group related declarations
 Usage
 Type an apostrophe ( ' ) followed by the comment
 The compiler ignores everything on the line after ‘
 Used for documentation/readability and to disable
chosen statements during testing
 Recommendations
 Follow apostrophe with a star for readability ( ‘* )
 Use at beginning of program to indicate author,
purpose, date, etc.
 Use for groups of related statements and portions of
code that are difficult to understand
'* ======================================
'* Class: CIS 115-101
'* Author: Paul Overstreet
'* Purpose: Homework 1 –VB Application
'* Date: 11/30/01
'* ======================================
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventAr…
'*Variable declarations
Dim dOrderTotal As Decimal
Dim dDiscountAmount As Decimal
'*Get total from textbox
dOrderTotal = txtOrderTotal.Text
'*Calculate the proper discount
dDiscountAmount = dOrderTotal * 0.25
' dDiscountAmount = dOrderTotal * 0.25
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)…
‘*Code goes here
End Sub
End Class
 Create an Event Procedure for when the
btnExit button is clicked
 Have it display “Goodbye” in a MsgBox
 Then “End” – this will terminate the program
 You can switch between the DesignWindow
and the CodeWindow (once opened) by
clicking on the tabs at the top of the
 Design and CodeWindows
 Form1.vb(Design) is the
 design window
 Form1.vb is the CodeWindow
 Click the Run Icon on the
StandardToolbar
 Or Press F5
 This will begin the program
 Display the Form/Window
 Nothing will happen
 Waiting on an Event
 Click on the “SayWelcome” button
 The message box should display
 Click on the “Exit” button
 The message box should display
 The application should terminate
 Make sure to save your work
 SAVE ALL (not Save Form)
 Visual Basic applications are
 made of several files -
 Often even several forms

More Related Content

What's hot

Dual boot
Dual bootDual boot
Dual boot
pushbiscuit
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
Faysal Hossain Shezan
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
Tennyson
 
Assemblies
AssembliesAssemblies
Assemblies
Janas Khan
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
mcganesh
 
Android installation
Android installationAndroid installation
Android installation
Durai S
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themes
Deepa Rani
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
sonalikharade3
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
Roshith S Pai
 
Android Layout
Android LayoutAndroid Layout
Android Layout
mcanotes
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
Taha Malampatti
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
MUKALU STEVEN
 
VB Script
VB ScriptVB Script
VB Script
Satish Sukumaran
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
ShahDhruv21
 
4.C#
4.C#4.C#
4 internet programming
4 internet programming4 internet programming
4 internet programming
soner_kavlak
 
Visual Programming Lecture.pptx
Visual Programming Lecture.pptxVisual Programming Lecture.pptx
Visual Programming Lecture.pptx
Muhammadkhan704767
 
Android application structure
Android application structureAndroid application structure
Android application structure
Alexey Ustenko
 
C# Constructors
C# ConstructorsC# Constructors
C# Constructors
Prem Kumar Badri
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
classall
 

What's hot (20)

Dual boot
Dual bootDual boot
Dual boot
 
Android studio installation
Android studio installationAndroid studio installation
Android studio installation
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
 
Assemblies
AssembliesAssemblies
Assemblies
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
Android installation
Android installationAndroid installation
Android installation
 
Android styles and themes
Android   styles and themesAndroid   styles and themes
Android styles and themes
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Components of .NET Framework
Components of .NET FrameworkComponents of .NET Framework
Components of .NET Framework
 
Android Layout
Android LayoutAndroid Layout
Android Layout
 
Introduction to Android ppt
Introduction to Android pptIntroduction to Android ppt
Introduction to Android ppt
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
 
VB Script
VB ScriptVB Script
VB Script
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
4.C#
4.C#4.C#
4.C#
 
4 internet programming
4 internet programming4 internet programming
4 internet programming
 
Visual Programming Lecture.pptx
Visual Programming Lecture.pptxVisual Programming Lecture.pptx
Visual Programming Lecture.pptx
 
Android application structure
Android application structureAndroid application structure
Android application structure
 
C# Constructors
C# ConstructorsC# Constructors
C# Constructors
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 

Similar to Visual studio.net

Ch01
Ch01Ch01
Chapter 01
Chapter 01Chapter 01
Chapter 01
Terry Yoast
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
AnasYunusa
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)
bluejayjunior
 
Ppt on visual basics
Ppt on visual basicsPpt on visual basics
Ppt on visual basics
younganand
 
LECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxLECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptx
AOmaAli
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
sagaroceanic11
 
06 win forms
06 win forms06 win forms
06 win forms
mrjw
 
SPF WinForm Programs
SPF WinForm ProgramsSPF WinForm Programs
SPF WinForm Programs
Hock Leng PUAH
 
Spf chapter 03 WinForm
Spf chapter 03 WinFormSpf chapter 03 WinForm
Spf chapter 03 WinForm
Hock Leng PUAH
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)
Don Bosco School Manila
 
The visual studio start page is shown in the figure below
The visual studio start page is shown in the figure belowThe visual studio start page is shown in the figure below
The visual studio start page is shown in the figure below
Tan Ps
 
Vb.net and .Net Framework
Vb.net and .Net FrameworkVb.net and .Net Framework
Vb.net and .Net Framework
SHIVANGICHAURASIYA
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
Fahim Khan
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
pbarasia
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
Faisal Aziz
 
Ms vb
Ms vbMs vb
Ms vb
sirjade4
 
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
Hoamuoigio Hoa
 

Similar to Visual studio.net (20)

Ch01
Ch01Ch01
Ch01
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
01 Database Management (re-uploaded)
01 Database Management (re-uploaded)01 Database Management (re-uploaded)
01 Database Management (re-uploaded)
 
Ppt on visual basics
Ppt on visual basicsPpt on visual basics
Ppt on visual basics
 
LECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxLECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptx
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
06 win forms
06 win forms06 win forms
06 win forms
 
SPF WinForm Programs
SPF WinForm ProgramsSPF WinForm Programs
SPF WinForm Programs
 
Spf chapter 03 WinForm
Spf chapter 03 WinFormSpf chapter 03 WinForm
Spf chapter 03 WinForm
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)Introduction to Visual Basic (Week 2)
Introduction to Visual Basic (Week 2)
 
The visual studio start page is shown in the figure below
The visual studio start page is shown in the figure belowThe visual studio start page is shown in the figure below
The visual studio start page is shown in the figure below
 
Vb.net and .Net Framework
Vb.net and .Net FrameworkVb.net and .Net Framework
Vb.net and .Net Framework
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
Ms vb
Ms vbMs vb
Ms vb
 
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
 

More from Dr. C.V. Suresh Babu

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
Dr. C.V. Suresh Babu
 
Association rules
Association rulesAssociation rules
Association rules
Dr. C.V. Suresh Babu
 
Clustering
ClusteringClustering
Classification
ClassificationClassification
Classification
Dr. C.V. Suresh Babu
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
Dr. C.V. Suresh Babu
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
Dr. C.V. Suresh Babu
 
DART
DARTDART
Mycin
MycinMycin
Expert systems
Expert systemsExpert systems
Expert systems
Dr. C.V. Suresh Babu
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
Dr. C.V. Suresh Babu
 
Bayes network
Bayes networkBayes network
Bayes network
Dr. C.V. Suresh Babu
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
Dr. C.V. Suresh Babu
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
Dr. C.V. Suresh Babu
 
Rule based system
Rule based systemRule based system
Rule based system
Dr. C.V. Suresh Babu
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
Dr. C.V. Suresh Babu
 
Production based system
Production based systemProduction based system
Production based system
Dr. C.V. Suresh Babu
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
Dr. C.V. Suresh Babu
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
Dr. C.V. Suresh Babu
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
Dr. C.V. Suresh Babu
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
Dr. C.V. Suresh Babu
 

More from Dr. C.V. Suresh Babu (20)

Data analytics with R
Data analytics with RData analytics with R
Data analytics with R
 
Association rules
Association rulesAssociation rules
Association rules
 
Clustering
ClusteringClustering
Clustering
 
Classification
ClassificationClassification
Classification
 
Blue property assumptions.
Blue property assumptions.Blue property assumptions.
Blue property assumptions.
 
Introduction to regression
Introduction to regressionIntroduction to regression
Introduction to regression
 
DART
DARTDART
DART
 
Mycin
MycinMycin
Mycin
 
Expert systems
Expert systemsExpert systems
Expert systems
 
Dempster shafer theory
Dempster shafer theoryDempster shafer theory
Dempster shafer theory
 
Bayes network
Bayes networkBayes network
Bayes network
 
Bayes' theorem
Bayes' theoremBayes' theorem
Bayes' theorem
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
Rule based system
Rule based systemRule based system
Rule based system
 
Formal Logic in AI
Formal Logic in AIFormal Logic in AI
Formal Logic in AI
 
Production based system
Production based systemProduction based system
Production based system
 
Game playing in AI
Game playing in AIGame playing in AI
Game playing in AI
 
Diagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AIDiagnosis test of diabetics and hypertension by AI
Diagnosis test of diabetics and hypertension by AI
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 
A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”A study on “impact of artificial intelligence in covid19 diagnosis”
A study on “impact of artificial intelligence in covid19 diagnosis”
 

Recently uploaded

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 

Recently uploaded (20)

A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 

Visual studio.net

  • 2.  Visual Studio 2005 Professional Edition (Requires Windows XP Pro)  MSDN Library for Visual Studio 2005 Available from MSDNAA
  • 3.  A platform that allows the development and deployment of desktop and web applications  Allows user choice of many .NET languages  May program in One of them  May create different parts of application in different languages ▪ Visual Basic ▪ C# (C Sharp) ▪ C++ ▪ J++ ▪ Etc.
  • 4.  Integrated Development Environment – allows the automation of many of the common programming tasks in one environment  Writing the code  Checking for Syntax (Language) errors  Compiling and Interpreting(Transferring to computer language)  Debugging (Fixing Run-time or Logic Errors)  Running the Application
  • 5.  4th Generation Programming Environment / Development Language  Based on BASIC language  Beginners All-Purpose Symbolic Instructional Code  Most widely used tool for developing Windows Applications  Graphical User Interface (GUI)  Menus, Buttons, Icons to help the user  Full Object-Oriented Programming Language
  • 6. Solution .NET FrameworkVisual Studio .NET Project Common Language Runtime Integrated Development Environment Source files Visual Basic compiler 1 2 3 Assembly Intermediate Language (IL) Class references
  • 7.  User creates a new project inVisual Studio  A solution and a folder are created at the same time with the same name as the project  The project belongs to the solution  Multiple projects can be included in a solution  Solution  Contains several folders that define an application’s structure  Solution files have a file suffix of .sln  Project: contains files for a part of the solution  Project file is used to create an executable application  A project file has a suffix of .vbproj  Every project has a type (Console,Windows, etc.)  Every project has an entry point: A Sub procedure named Main or a Form
  • 8.  Solution folder  Solution file (.sln)  Project folder ▪ Project file (.vbproj) ▪ Visual Basic source files (.vb) ▪ My Project folder: contains configuration information common to all projects ▪ The file AssemblyInfo.vb contains assembly metadata ▪ The References folder contains references to other assemblies ▪ The bin folder contains the executable file produced as a result of compiling the application
  • 9.
  • 10.  Select the “Create Project” option from the “Recent Projects” box on the Start Page
  • 11.
  • 12.  This is aVisual Basic GUI object called a form  Forms are the windows and dialog boxes that display when a program runs.  A form is an object that contains other objects such as buttons, text boxes, and labels
  • 13.  Form elements are objects called controls  This form has:  TwoTextBox controls  Four Label controls  Two Button controls  The value displayed by a control is held in the text property of the control  Left button text property is Calculate Gross Pay  Buttons have methods attached to events
  • 15.  Step 1: Add a Control to the Form – Button  Look in theToolbox for the Button Control  Select the Button with the Mouse  Draw a Rectangle Region in the DesignWindow by holding the mouse button down  Release the mouse button to see your button  (Can also be added by double clicking on the button in theToolbox)
  • 16.
  • 17.  Add a Second Button to the Form  Put it in the lower right corner  The project now contains  a form with 2 button  controls
  • 18.  Properties  All controls have properties  Each property has a value (or values)  Determine the Look and Feel (and sometimes behavior) of a Control  Set initially through the Properties Window  Properties Set for this Application  Name  Text
  • 19.  The name property establishes a means for the program to refer to that control  Controls are assigned relatively meaningless names when created  Change these names to something more meaningful  Control names must start with a letter  Remaining characters may be letters, digits, or underscore
  • 20. btnCalcGrossPay btnClose txtHoursWorked txtPayRate lblGrossPay Label1 Label2 Label3  The label controls use the default names (Label1, etc.)  Text boxes, buttons, and the Gross Pay label play an active role in the program and have been changed
  • 21.  Should be meaningful  1st 3 lowercase letters indicate the type of control  txt… forText Boxes  lbl… for Labels  btn… for Buttons  After that, capitalize the first letter of each word  txtHoursWorked is clearer than txthoursworked  Change the name property  Set the name of button1 to btnWelcome  Set the name of button2 to btnExit
  • 22.  Click on the Control in the DesignWindow  Select the appropriate property in the PropertiesWindow
  • 23.  Determines the visible text on the control  Change the text property  bntWelcome  set to “SayWelcome”  btnExit  set to “Exit”  Do not need to include the “ “ in your text field  Notice how the buttons now display the new text
  • 24.  The GUI environment is event-driven  An event is an action that takes place within a program  Clicking a button (a Click event)  Keying in aTextBox (aTextChanged event)  Visual Basic controls are capable of detecting many, many events  A program can respond to an event if the programmer writes an event procedure
  • 25.  An Event Procedure is a block of code that executes only when particular event occurs  Writing an Event Procedure  Create the event procedure stub ▪ Double click on control from DesignWindow – for default event for that control OR ▪ Open the Code Editor (F7 orView Menu/Code option) ▪ Select Control & Select Event from drop down windows in Code Editor  Add the event code to the event procedure stub
  • 26.
  • 27.
  • 28.  Select the btnWelcome control from the Form Controls List Box
  • 29.  Select the Click event from the list of many available events  Buttons have 57 possible events they can respond to
  • 30.  Beginning of Procedure is created for you  If you create stub by double clicking on control it will create a stub for the most commonly used event for that control
  • 31.  Write the code that you want executed when the user clicks on the btnWelcome button  Type: MsgBox (“Welcome toVisual Basic”)  Must be contained within the Event Procedure Stub
  • 32.  Not Case Sensitive  Visual Basic will “correct” case issues for you  Keywords are in Blue  Special reserved words  Comments in Green  Problems with Syntax (Language) will be underlined in blue
  • 33.  Rules  Use spaces to separate the words and operators  Indentation and capitalization have no effect  Recommendations  Use indentation and extra spaces for alignment  Use blank lines before and after groups of related statements  Code all variable declarations at the start of the procedure  Group related declarations
  • 34.  Usage  Type an apostrophe ( ' ) followed by the comment  The compiler ignores everything on the line after ‘  Used for documentation/readability and to disable chosen statements during testing  Recommendations  Follow apostrophe with a star for readability ( ‘* )  Use at beginning of program to indicate author, purpose, date, etc.  Use for groups of related statements and portions of code that are difficult to understand
  • 35. '* ====================================== '* Class: CIS 115-101 '* Author: Paul Overstreet '* Purpose: Homework 1 –VB Application '* Date: 11/30/01 '* ====================================== Public Class Form1 Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventAr… '*Variable declarations Dim dOrderTotal As Decimal Dim dDiscountAmount As Decimal '*Get total from textbox dOrderTotal = txtOrderTotal.Text '*Calculate the proper discount dDiscountAmount = dOrderTotal * 0.25 ' dDiscountAmount = dOrderTotal * 0.25 End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)… ‘*Code goes here End Sub End Class
  • 36.  Create an Event Procedure for when the btnExit button is clicked  Have it display “Goodbye” in a MsgBox  Then “End” – this will terminate the program
  • 37.  You can switch between the DesignWindow and the CodeWindow (once opened) by clicking on the tabs at the top of the  Design and CodeWindows  Form1.vb(Design) is the  design window  Form1.vb is the CodeWindow
  • 38.  Click the Run Icon on the StandardToolbar  Or Press F5  This will begin the program  Display the Form/Window  Nothing will happen  Waiting on an Event
  • 39.  Click on the “SayWelcome” button  The message box should display  Click on the “Exit” button  The message box should display  The application should terminate
  • 40.  Make sure to save your work  SAVE ALL (not Save Form)  Visual Basic applications are  made of several files -  Often even several forms

Editor's Notes

  1. Click on Visual Studio Icon on Desktop Start Page should look something like this. If the start page does not appear, click on the Tools Menu, Select Options, Select Start Page from the “At Start Up” list box The Recent Projects box will allow you to open a new or an existing project
  2. Project Type  Visual Basic Project Template  Windows Application Name  Give the project a name Projects will be stored in the default file location as specified in the program options. Visual Basic applications (and all Visual Studio applications) have multiple files. It will create a folder in the location for each project name
  3. The default settings (located under Tools  Options) allows you to specify where to save the projects.
  4. Visual Basic IDE Title Bar Menu Bar Toolbars  Standard and Layout (others available under View menu) DESIGN Window – this contains the form (window) currently being developed Toolbox – Contains the controls that you can add to the form – the forms with the controls make up the GUI for your application Solution Explorer – Contains a listing of the components of the project / solution. A solution is the large application that contains one or more projects. Most applications will contain one project within one solution If anything is not visible, look under the “View” menu
  5. This will open the Code Editor – to write, display, edit your Visual Basic Code
  6. DO NOT MODIFY the Windows Form Designer Generated Code
  7. This is based on the interpreter. An Interpreter attempts to make the conversion to machine language at the end of every line of code. Any syntax errors are identified by Visual Basic as the line is completed.