SlideShare a Scribd company logo
Bachiller:
Gutiérrez Ricardo
Escuela: Electricidad
Public Class Form1
Private Sub Label5_Click(ByVal sender As System Object, ByVal e As
System.EventArgs) Handles Label5.Click
End Sub
Private Sub Button1_Click(ByVal sender As System Object. ByVal e As
System.EventArgs) Handles Button1.Click
TextBox5.Text = (Val(TextBox1.Text) + Val(TextBox2.Text) +
Val(TextBox3.Text) + Val(TextBox4.Text)) / 4
If Val(TextBox5.Text) >= 10 Then
TextBox6.Text = “Aprobado”
Else
TextBox6.Text = “Desaprobado”
End If
End Sub
Private Sub Button2_Click(ByVal sender As System Object. ByVal e As
System.EventArgs) Handles Button2.Click
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
End Sub
Private Sub Button3_Click(ByVal sender As System Object. ByVal e As
System.EventArgs) Handles Button3.Click
End
End Sub
End Class

More Related Content

DOCX
Federico landinez docx
PDF
Guevara rene if then., else
DOCX
Christian rodriguez then else
PDF
Federico landinez docx
PDF
Noguera jesus
PDF
Alvarez wilmer
PDF
Parra maxi IF THEN ELSE
DOCX
Código Acerca Editor_Net
Federico landinez docx
Guevara rene if then., else
Christian rodriguez then else
Federico landinez docx
Noguera jesus
Alvarez wilmer
Parra maxi IF THEN ELSE
Código Acerca Editor_Net

What's hot (14)

PPTX
B2. activity and intent
DOCX
Código Opção Substituir
DOCX
Código Editor Net
PDF
Android Lesson 3 - Intent
PPTX
Android Intent and intent filters
PPTX
05 intent
PDF
Android intents
DOCX
.net progrmming part4
PDF
Android Introduction
PDF
Ejercicio sql server vs visual .net
DOC
DOCX
If then statement activity
PPTX
Visual Web Developer and Web Controls CS set 3
B2. activity and intent
Código Opção Substituir
Código Editor Net
Android Lesson 3 - Intent
Android Intent and intent filters
05 intent
Android intents
.net progrmming part4
Android Introduction
Ejercicio sql server vs visual .net
If then statement activity
Visual Web Developer and Web Controls CS set 3
Ad

Similar to Ejercicio de Visual Basic IF THEN ELSE (20)

DOCX
Federico landinez docx
PPTX
Colegio municipal
PPTX
Latihan visual basic 2010/Looping/Perulangan
PDF
Calculator code
DOC
Calculadora
DOC
Correction s+ rie_vb
DOC
Elementos del lenguaje
PDF
Inventory management
PDF
PROGRAMA DE EJEMPLO
DOC
Laboratory activity 3 b2
DOC
Ficha tecnica
DOCX
Punto fijo multivariante
DOCX
Ensayo Convergencia Informatica
PPTX
Vs c# lecture2
PPTX
Vp lecture 4 ararat
DOCX
Practica porfe agustin eliminar y grabar
PDF
Windows Forms For Beginners Part 5
PDF
DOCX
Ete programs
DOCX
โครงการ 5 บท
Federico landinez docx
Colegio municipal
Latihan visual basic 2010/Looping/Perulangan
Calculator code
Calculadora
Correction s+ rie_vb
Elementos del lenguaje
Inventory management
PROGRAMA DE EJEMPLO
Laboratory activity 3 b2
Ficha tecnica
Punto fijo multivariante
Ensayo Convergencia Informatica
Vs c# lecture2
Vp lecture 4 ararat
Practica porfe agustin eliminar y grabar
Windows Forms For Beginners Part 5
Ete programs
โครงการ 5 บท
Ad

Recently uploaded (20)

PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Complications of Minimal Access Surgery at WLH
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Computing-Curriculum for Schools in Ghana
Module 4: Burden of Disease Tutorial Slides S2 2025
Insiders guide to clinical Medicine.pdf
Cell Types and Its function , kingdom of life
O5-L3 Freight Transport Ops (International) V1.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Final Presentation General Medicine 03-08-2024.pptx
Renaissance Architecture: A Journey from Faith to Humanism
Complications of Minimal Access Surgery at WLH
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial disease of the cardiovascular and lymphatic systems
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPH.pptx obstetrics and gynecology in nursing
STATICS OF THE RIGID BODIES Hibbelers.pdf
01-Introduction-to-Information-Management.pdf
Supply Chain Operations Speaking Notes -ICLT Program
O7-L3 Supply Chain Operations - ICLT Program
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Computing-Curriculum for Schools in Ghana

Ejercicio de Visual Basic IF THEN ELSE

  • 1. Bachiller: Gutiérrez Ricardo Escuela: Electricidad Public Class Form1 Private Sub Label5_Click(ByVal sender As System Object, ByVal e As System.EventArgs) Handles Label5.Click End Sub Private Sub Button1_Click(ByVal sender As System Object. ByVal e As System.EventArgs) Handles Button1.Click TextBox5.Text = (Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text)) / 4 If Val(TextBox5.Text) >= 10 Then
  • 2. TextBox6.Text = “Aprobado” Else TextBox6.Text = “Desaprobado” End If End Sub Private Sub Button2_Click(ByVal sender As System Object. ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Clear() TextBox2.Clear() TextBox3.Clear() TextBox4.Clear() TextBox5.Clear() TextBox6.Clear() End Sub Private Sub Button3_Click(ByVal sender As System Object. ByVal e As System.EventArgs) Handles Button3.Click End End Sub End Class