SlideShare une entreprise Scribd logo
1  sur  3
Public Class Form1
Dim total As Double
Dim total1 As Double
Dim operation As String

Private Sub zero_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
zero.Click
TextBox1.Text = TextBox1.Text & zero.Text
End Sub

Private Sub one_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
one.Click
TextBox1.Text = TextBox1.Text & one.Text
End Sub

Private Sub two_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
two.Click
TextBox1.Text = TextBox1.Text & two.Text
End Sub

Private Sub three_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
three.Click
TextBox1.Text = TextBox1.Text & three.Text
End Sub

Private Sub four_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
four.Click
TextBox1.Text = TextBox1.Text & four.Text
End Sub

Private Sub five_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
five.Click
TextBox1.Text = TextBox1.Text & five.Text
End Sub

Private Sub six_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
six.Click
TextBox1.Text = TextBox1.Text & six.Text
End Sub

Private Sub seven_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
seven.Click
TextBox1.Text = TextBox1.Text & seven.Text
End Sub

Private Sub eight_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
eight.Click
TextBox1.Text = TextBox1.Text & eight.Text
End Sub

Private Sub nine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
nine.Click
TextBox1.Text = TextBox1.Text & nine.Text
End Sub

Private Sub plus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
plus.Click
operation = "+"
total = total + Val(TextBox1.Text)
TextBox1.Text = " "
End Sub

Private Sub Mul_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Mul.Click
operation = "*"
total = total + Val(TextBox1.Text)
TextBox1.Text = " "
End Sub

Private Sub equal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
equal.Click
If operation = "+" Then
total1 = total + Val(TextBox1.Text)
total = 0

ElseIf operation = "*" Then
total1 = total * Val(TextBox1.Text)
total = 0

ElseIf operation = "-" Then
total1 = total - Val(TextBox1.Text)
total = 0

ElseIf operation = "" Then
total1 = total  Val(TextBox1.Text)
total = 0

End If
TextBox1.Text = total1.ToString()
End Sub

Private Sub minus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
minus.Click
operation = "-"
total = total + Val(TextBox1.Text)
TextBox1.Text = " "
End Sub

Private Sub div_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
div.Click
operation = ""
total = total + Val(TextBox1.Text)
TextBox1.Text = " "
End Sub

Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Cancel.Click
TextBox1.Text = " "
End Sub

Private Sub CE_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
CE.Click
TextBox1.Text = ""
total1 = 0
End Sub

Private Sub dot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
dot.Click
TextBox1.Text = TextBox1.Text & "."
End Sub
End Class

Contenu connexe

Tendances

Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearDezyneecole
 
How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)Giuseppe Filograno
 
C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1Mohammad Shaker
 
How to Write Better Code with Mutation Testing
How to Write Better Code with Mutation TestingHow to Write Better Code with Mutation Testing
How to Write Better Code with Mutation TestingJohn Backus
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informaticamiguel camelo
 
C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2Mohammad Shaker
 
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Rx 101   Codemotion Milan 2015 - Tamir DresherRx 101   Codemotion Milan 2015 - Tamir Dresher
Rx 101 Codemotion Milan 2015 - Tamir DresherTamir Dresher
 
Mule esb object_to_jackson_json
Mule esb object_to_jackson_jsonMule esb object_to_jackson_json
Mule esb object_to_jackson_jsonDavide Rapacciuolo
 
Building responsive application with Rx - confoo - tamir dresher
Building responsive application with Rx - confoo - tamir dresherBuilding responsive application with Rx - confoo - tamir dresher
Building responsive application with Rx - confoo - tamir dresherTamir Dresher
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearDezyneecole
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearDezyneecole
 

Tendances (20)

Bhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third YearBhanu Pratap Singh Shekhawat, BCA Third Year
Bhanu Pratap Singh Shekhawat, BCA Third Year
 
How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)How to become an Android dev starting from iOS (and vice versa)
How to become an Android dev starting from iOS (and vice versa)
 
Vb file
Vb fileVb file
Vb file
 
C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1C++ Windows Forms L02 - Controls P1
C++ Windows Forms L02 - Controls P1
 
Docimp
DocimpDocimp
Docimp
 
How to Write Better Code with Mutation Testing
How to Write Better Code with Mutation TestingHow to Write Better Code with Mutation Testing
How to Write Better Code with Mutation Testing
 
Ficha tecnica
Ficha tecnicaFicha tecnica
Ficha tecnica
 
Ete programs
Ete programsEte programs
Ete programs
 
Ensayo Convergencia Informatica
Ensayo Convergencia InformaticaEnsayo Convergencia Informatica
Ensayo Convergencia Informatica
 
C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2C++ Windows Forms L09 - GDI P2
C++ Windows Forms L09 - GDI P2
 
Punto fijo multivariante
Punto fijo multivariantePunto fijo multivariante
Punto fijo multivariante
 
Codes
CodesCodes
Codes
 
My.setting tutorial
My.setting tutorialMy.setting tutorial
My.setting tutorial
 
Stop watch and array
Stop watch and arrayStop watch and array
Stop watch and array
 
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Rx 101   Codemotion Milan 2015 - Tamir DresherRx 101   Codemotion Milan 2015 - Tamir Dresher
Rx 101 Codemotion Milan 2015 - Tamir Dresher
 
Mule esb object_to_jackson_json
Mule esb object_to_jackson_jsonMule esb object_to_jackson_json
Mule esb object_to_jackson_json
 
Building responsive application with Rx - confoo - tamir dresher
Building responsive application with Rx - confoo - tamir dresherBuilding responsive application with Rx - confoo - tamir dresher
Building responsive application with Rx - confoo - tamir dresher
 
Kajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third YearKajal Gaharwal , BCA Third Year
Kajal Gaharwal , BCA Third Year
 
Clase 3
Clase 3Clase 3
Clase 3
 
Rakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third YearRakesh Bijawat , BCA Third Year
Rakesh Bijawat , BCA Third Year
 

En vedette

Customer relationship management
Customer relationship managementCustomer relationship management
Customer relationship managementRajeev Sharan
 
Human resource management
Human resource managementHuman resource management
Human resource managementRajeev Sharan
 
Rajeev oops 2nd march
Rajeev oops 2nd marchRajeev oops 2nd march
Rajeev oops 2nd marchRajeev Sharan
 
P 10 p-4ac756g50(gb )
P 10 p-4ac756g50(gb )P 10 p-4ac756g50(gb )
P 10 p-4ac756g50(gb )Rajeev Sharan
 
RECENT TRENDS OF MAINTENANCE MANAGEMENT
RECENT TRENDS OF MAINTENANCE MANAGEMENTRECENT TRENDS OF MAINTENANCE MANAGEMENT
RECENT TRENDS OF MAINTENANCE MANAGEMENTRajeev Sharan
 
Declaring friend function with inline code
Declaring friend function with inline codeDeclaring friend function with inline code
Declaring friend function with inline codeRajeev Sharan
 
Production and materials management
Production and materials managementProduction and materials management
Production and materials managementRajeev Sharan
 
Order specification sheet
Order specification sheetOrder specification sheet
Order specification sheetRajeev Sharan
 
Material requirement planning
Material requirement planningMaterial requirement planning
Material requirement planningRajeev Sharan
 
SETTING UP OF A GARMENT INDUSTRY
SETTING UP OF A GARMENT INDUSTRYSETTING UP OF A GARMENT INDUSTRY
SETTING UP OF A GARMENT INDUSTRYRajeev Sharan
 
Maintenance management
Maintenance managementMaintenance management
Maintenance managementRajeev Sharan
 
Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)
Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)
Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)Rajeev Sharan
 
Garment inspection report_dn1_page_2
Garment inspection report_dn1_page_2Garment inspection report_dn1_page_2
Garment inspection report_dn1_page_2Rajeev Sharan
 

En vedette (20)

Customer relationship management
Customer relationship managementCustomer relationship management
Customer relationship management
 
Human resource management
Human resource managementHuman resource management
Human resource management
 
IPR
IPRIPR
IPR
 
Rajeev oops 2nd march
Rajeev oops 2nd marchRajeev oops 2nd march
Rajeev oops 2nd march
 
P 10 p-4ac756g50(gb )
P 10 p-4ac756g50(gb )P 10 p-4ac756g50(gb )
P 10 p-4ac756g50(gb )
 
RECENT TRENDS OF MAINTENANCE MANAGEMENT
RECENT TRENDS OF MAINTENANCE MANAGEMENTRECENT TRENDS OF MAINTENANCE MANAGEMENT
RECENT TRENDS OF MAINTENANCE MANAGEMENT
 
Declaring friend function with inline code
Declaring friend function with inline codeDeclaring friend function with inline code
Declaring friend function with inline code
 
Production and materials management
Production and materials managementProduction and materials management
Production and materials management
 
Final pl doc
Final pl docFinal pl doc
Final pl doc
 
Ergonomics
Ergonomics Ergonomics
Ergonomics
 
Order specification sheet
Order specification sheetOrder specification sheet
Order specification sheet
 
Material requirement planning
Material requirement planningMaterial requirement planning
Material requirement planning
 
SETTING UP OF A GARMENT INDUSTRY
SETTING UP OF A GARMENT INDUSTRYSETTING UP OF A GARMENT INDUSTRY
SETTING UP OF A GARMENT INDUSTRY
 
Shirt spec sheet
Shirt spec sheetShirt spec sheet
Shirt spec sheet
 
Maintenance management
Maintenance managementMaintenance management
Maintenance management
 
Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)
Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)
Graduation Project (SA 8000 & it's frame work for Indian Apparel Manufacturing)
 
PAD FINAL DOC
PAD FINAL DOCPAD FINAL DOC
PAD FINAL DOC
 
Sp 02
Sp 02Sp 02
Sp 02
 
Garment inspection report_dn1_page_2
Garment inspection report_dn1_page_2Garment inspection report_dn1_page_2
Garment inspection report_dn1_page_2
 
Sp 02
Sp 02Sp 02
Sp 02
 

Similaire à Calculator code

Código Acerca Editor_Net
Código Acerca Editor_NetCódigo Acerca Editor_Net
Código Acerca Editor_Netcymbron
 
Latihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganLatihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganNurul Arhaiyyu
 
Ejercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSEEjercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSERicardoGuti50
 
Christian rodriguez then else
Christian rodriguez then   elseChristian rodriguez then   else
Christian rodriguez then elsegabo2200
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docxgabo2200
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docxgabo2200
 
Guevara rene if then., else
Guevara rene  if then., elseGuevara rene  if then., else
Guevara rene if then., elsegabo2200
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docxgabo2200
 
Parra maxi IF THEN ELSE
Parra maxi IF THEN ELSEParra maxi IF THEN ELSE
Parra maxi IF THEN ELSEgabo2200
 
PROGRAMA DE EJEMPLO
PROGRAMA DE EJEMPLOPROGRAMA DE EJEMPLO
PROGRAMA DE EJEMPLOmhormech
 
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITYDOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITYGOKUL SREE
 
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdf
  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdfapnashop1
 
Reservasi hotel
Reservasi hotelReservasi hotel
Reservasi hoteldian pw
 

Similaire à Calculator code (20)

Calculadora
CalculadoraCalculadora
Calculadora
 
Código Acerca Editor_Net
Código Acerca Editor_NetCódigo Acerca Editor_Net
Código Acerca Editor_Net
 
Latihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganLatihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/Perulangan
 
Ejercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSEEjercicio de Visual Basic IF THEN ELSE
Ejercicio de Visual Basic IF THEN ELSE
 
Christian rodriguez then else
Christian rodriguez then   elseChristian rodriguez then   else
Christian rodriguez then else
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docx
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docx
 
Guevara rene if then., else
Guevara rene  if then., elseGuevara rene  if then., else
Guevara rene if then., else
 
Federico landinez docx
Federico landinez docxFederico landinez docx
Federico landinez docx
 
Parra maxi IF THEN ELSE
Parra maxi IF THEN ELSEParra maxi IF THEN ELSE
Parra maxi IF THEN ELSE
 
Correction s+ rie_vb
Correction s+ rie_vbCorrection s+ rie_vb
Correction s+ rie_vb
 
PROGRAMA DE EJEMPLO
PROGRAMA DE EJEMPLOPROGRAMA DE EJEMPLO
PROGRAMA DE EJEMPLO
 
Trabajo de case
Trabajo de caseTrabajo de case
Trabajo de case
 
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITYDOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
 
Trabajo de case
Trabajo de caseTrabajo de case
Trabajo de case
 
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdf
  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf  Imports System.Net.Sockets Imports System.Text Public Class Form1   .pdf
Imports System.Net.Sockets Imports System.Text Public Class Form1 .pdf
 
Uni1
Uni1Uni1
Uni1
 
Reservasi hotel
Reservasi hotelReservasi hotel
Reservasi hotel
 
Vs c# lecture2
Vs c# lecture2Vs c# lecture2
Vs c# lecture2
 
Vp lecture 4 ararat
Vp lecture 4 araratVp lecture 4 ararat
Vp lecture 4 ararat
 

Plus de Rajeev Sharan

Plus de Rajeev Sharan (20)

Supply chain management
Supply chain managementSupply chain management
Supply chain management
 
Production module-ERP
Production module-ERPProduction module-ERP
Production module-ERP
 
Supply chain management
Supply chain managementSupply chain management
Supply chain management
 
E smartx.ppt
E smartx.pptE smartx.ppt
E smartx.ppt
 
Maintenance management
Maintenance managementMaintenance management
Maintenance management
 
Maintenance management
Maintenance managementMaintenance management
Maintenance management
 
product analysis & development- sourcing
product analysis & development- sourcingproduct analysis & development- sourcing
product analysis & development- sourcing
 
Product Analysis & Development
Product Analysis & DevelopmentProduct Analysis & Development
Product Analysis & Development
 
Ergonomics
ErgonomicsErgonomics
Ergonomics
 
Total service management
Total service managementTotal service management
Total service management
 
Lean- automobile
Lean- automobileLean- automobile
Lean- automobile
 
Vb (2)
Vb (2)Vb (2)
Vb (2)
 
Vb (1)
Vb (1)Vb (1)
Vb (1)
 
Vb
VbVb
Vb
 
INVENTORY OPTIMIZATION
INVENTORY OPTIMIZATIONINVENTORY OPTIMIZATION
INVENTORY OPTIMIZATION
 
Professional practices
Professional practicesProfessional practices
Professional practices
 
Report writing.....
Report writing.....Report writing.....
Report writing.....
 
Business ethics @ tata
Business ethics @ tataBusiness ethics @ tata
Business ethics @ tata
 
Software maintenance
Software maintenance Software maintenance
Software maintenance
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 

Dernier

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Dernier (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Calculator code

  • 1. Public Class Form1 Dim total As Double Dim total1 As Double Dim operation As String Private Sub zero_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles zero.Click TextBox1.Text = TextBox1.Text & zero.Text End Sub Private Sub one_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles one.Click TextBox1.Text = TextBox1.Text & one.Text End Sub Private Sub two_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles two.Click TextBox1.Text = TextBox1.Text & two.Text End Sub Private Sub three_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles three.Click TextBox1.Text = TextBox1.Text & three.Text End Sub Private Sub four_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles four.Click TextBox1.Text = TextBox1.Text & four.Text End Sub Private Sub five_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles five.Click TextBox1.Text = TextBox1.Text & five.Text End Sub Private Sub six_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles six.Click TextBox1.Text = TextBox1.Text & six.Text End Sub Private Sub seven_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles seven.Click TextBox1.Text = TextBox1.Text & seven.Text End Sub Private Sub eight_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles eight.Click TextBox1.Text = TextBox1.Text & eight.Text End Sub Private Sub nine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nine.Click TextBox1.Text = TextBox1.Text & nine.Text End Sub Private Sub plus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles plus.Click operation = "+"
  • 2. total = total + Val(TextBox1.Text) TextBox1.Text = " " End Sub Private Sub Mul_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Mul.Click operation = "*" total = total + Val(TextBox1.Text) TextBox1.Text = " " End Sub Private Sub equal_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles equal.Click If operation = "+" Then total1 = total + Val(TextBox1.Text) total = 0 ElseIf operation = "*" Then total1 = total * Val(TextBox1.Text) total = 0 ElseIf operation = "-" Then total1 = total - Val(TextBox1.Text) total = 0 ElseIf operation = "" Then total1 = total Val(TextBox1.Text) total = 0 End If TextBox1.Text = total1.ToString() End Sub Private Sub minus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles minus.Click operation = "-" total = total + Val(TextBox1.Text) TextBox1.Text = " " End Sub Private Sub div_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles div.Click operation = "" total = total + Val(TextBox1.Text) TextBox1.Text = " " End Sub Private Sub Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel.Click TextBox1.Text = " " End Sub Private Sub CE_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CE.Click TextBox1.Text = "" total1 = 0 End Sub Private Sub dot_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dot.Click
  • 3. TextBox1.Text = TextBox1.Text & "." End Sub End Class