SlideShare una empresa de Scribd logo
1 de 7
Public Class Form1
Dim x As Integer

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
seg1.Text = seg1.Text - 1
If seg1.Text = 0 Then
Timer1.Stop()
End If

End Sub

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs)

End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Timer1.Start()
Timer2.Start()
Timer3.Start()
Timer4.Start()
Timer5.Start()
Timer7.Start()

End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Timer1.Stop()
Timer2.Stop()
Timer3.Stop()
Timer4.Stop()
Timer5.Stop()
Timer7.Stop()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Me.Close()
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer2.Tick
seg2.Text = seg2.Text - 1
If seg2.Text = 0 Then
Timer2.Stop()
End If
End Sub
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer3.Tick
seg3.Text = seg3.Text - 1
If seg3.Text = 0 Then
Timer3.Stop()
End If
End Sub
Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer5.Tick
seg5.Text = seg5.Text - 1
If seg5.Text = 0 Then
Timer5.Stop()
End If
End Sub
Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer4.Tick
seg4.Text = seg4.Text - 1
If seg4.Text = 0 Then
Timer4.Stop()
End If
End Sub

Private Sub Timer7_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer7.Tick
tiempo.Text = tiempo.Text + 1
rosado.Visible = True
PictureBox9.Visible = False
morado.Visible = True
PictureBox13.Visible = False

celeste.Visible = True
PictureBox16.Visible = False

verde.Visible = True
PictureBox14.Visible = False

amarillo.Visible = True
PictureBox10.Visible = False

If tiempo.Text = "10" Then
Timer5.Start()
rosado.Visible = False
rosado.Visible = True
PictureBox22.Visible = False
seg5.Text = "10"
End If

If tiempo.Text = "20" Then
Timer5.Start()
rosado.Visible = False
rosado.Visible = True
PictureBox25.Visible = False
seg5.Text = "10"
End If
If tiempo.Text = "30" Then
Timer5.Start()
seg5.Text = "17"
amarillo4.Visible = True
PictureBox18.Visible = False
rosado.Visible = False
End If
If tiempo.Text = "47" Then
amarillo4.Visible = False
seg5.Text = "free"
Timer5.Stop()
End If
If tiempo.Text = "5" Then
Timer4.Start()
seg4.Text = "5"
morado.Visible = False
morado.Visible = True
PictureBox15.Visible = False
End If
If tiempo.Text = "10" Then
Timer4.Start()
seg4.Text = "5"
morado.Visible = False
morado.Visible = True
PictureBox17.Visible = False
End If
If tiempo.Text = "15" Then
Timer4.Start()
seg4.Text = "5"
morado.Visible = False
morado.Visible = True
PictureBox23.Visible = False
End If
If tiempo.Text = "20" Then
Timer4.Start()
seg4.Text = "5"
morado.Visible = True
End If
If tiempo.Text = "25" Then
Timer4.Start()
seg4.Text = "17"
morado.Visible = False
amarillo3.Visible = True
PictureBox21.Visible = False
End If
If tiempo.Text = "42" Then
amarillo3.Visible = False
seg4.Text = "free"
Timer4.Stop()

End If

If tiempo.Text = "7" Then
PictureBox19.Visible = False
Timer3.Start()
seg3.Text = "7"
celeste.Visible = False
celeste.Visible = True
End If
If tiempo.Text = "14" Then
PictureBox20.Visible = False
Timer3.Start()
seg3.Text = "7"
celeste.Visible = False
celeste.Visible = True
End If
If tiempo.Text = "21" Then
PictureBox27.Visible = False
celeste.Visible = False
Timer3.Start()
seg3.Text = "17"
amarillo2.Visible = True
End If
If tiempo.Text = "38" Then
PictureBox28.Visible = False
celeste.Visible = False
Timer3.Start()
seg3.Text = "17"
amarillo2.Visible = True
End If
If tiempo.Text = "55" Then
amarillo2.Visible = False
seg3.Text = "free"

Timer3.Stop()
End If

If tiempo.Text = "10" Then
Timer2.Start()
verde.Visible = False
seg2.Text = "10"
verde.Visible = True
End If
If tiempo.Text = "20" Then
Timer2.Start()
seg2.Text = "10"
verde.Visible = False
verde.Visible = True
PictureBox24.Visible = False
End If
If tiempo.Text = "30" Then
Timer2.Start()
seg2.Text = "17"
verde.Visible = False
PictureBox26.Visible = False
amarillo1.Visible = True
End If
If tiempo.Text = "47" Then
amarillo1.Visible = False
seg2.Text = "free"
Timer2.Stop()
End If

If tiempo.Text = "17" Then
PictureBox10.Visible = False
Timer1.Start()
seg1.Text = "17"
amarillo.Visible = True
End If
If tiempo.Text = "34" Then
PictureBox11.Visible = False
Timer1.Start()
seg1.Text = "17"
amarillo.Visible = True
PictureBox12.Visible = False
End If

If tiempo.Text = "51" Then
amarillo.Visible = False
seg1.Text = "free"
Timer1.Stop()
End If
If tiempo.Text = "55" Then
Timer7.Stop()
MsgBox("El Simulador a terminado")
End If
End Sub
End Class

Más contenido relacionado

Similar a Simulador (20)

Reservasi hotel
Reservasi hotelReservasi hotel
Reservasi hotel
 
Código Editor Net
Código Editor NetCódigo Editor Net
Código Editor Net
 
Vb file
Vb fileVb file
Vb file
 
Vbreport program
Vbreport programVbreport program
Vbreport program
 
Vbreport
VbreportVbreport
Vbreport
 
Calculadora
CalculadoraCalculadora
Calculadora
 
Calculator code
Calculator codeCalculator code
Calculator code
 
Parra maxi IF THEN ELSE
Parra maxi IF THEN ELSEParra maxi IF THEN ELSE
Parra maxi IF THEN ELSE
 
Inventory management
Inventory managementInventory management
Inventory management
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
Linear Search Program in Visual Basic 2008
Linear Search Program in Visual Basic 2008Linear Search Program in Visual Basic 2008
Linear Search Program in Visual Basic 2008
 
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
 
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
 
Docimp
DocimpDocimp
Docimp
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Stop watch and array
Stop watch and arrayStop watch and array
Stop watch and array
 
Listing program
Listing programListing program
Listing program
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
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
 

Simulador

  • 1.
  • 2. Public Class Form1 Dim x As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick seg1.Text = seg1.Text - 1 If seg1.Text = 0 Then Timer1.Stop() End If End Sub Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start() Timer2.Start() Timer3.Start() Timer4.Start() Timer5.Start() Timer7.Start() End Sub
  • 3. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Timer1.Stop() Timer2.Stop() Timer3.Stop() Timer4.Stop() Timer5.Stop() Timer7.Stop() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Me.Close() End Sub Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick seg2.Text = seg2.Text - 1 If seg2.Text = 0 Then Timer2.Stop() End If End Sub Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick seg3.Text = seg3.Text - 1 If seg3.Text = 0 Then Timer3.Stop() End If End Sub Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer5.Tick seg5.Text = seg5.Text - 1 If seg5.Text = 0 Then Timer5.Stop() End If End Sub Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick seg4.Text = seg4.Text - 1 If seg4.Text = 0 Then Timer4.Stop() End If End Sub Private Sub Timer7_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer7.Tick tiempo.Text = tiempo.Text + 1
  • 4. rosado.Visible = True PictureBox9.Visible = False morado.Visible = True PictureBox13.Visible = False celeste.Visible = True PictureBox16.Visible = False verde.Visible = True PictureBox14.Visible = False amarillo.Visible = True PictureBox10.Visible = False If tiempo.Text = "10" Then Timer5.Start() rosado.Visible = False rosado.Visible = True PictureBox22.Visible = False seg5.Text = "10" End If If tiempo.Text = "20" Then Timer5.Start() rosado.Visible = False rosado.Visible = True PictureBox25.Visible = False seg5.Text = "10" End If If tiempo.Text = "30" Then Timer5.Start() seg5.Text = "17" amarillo4.Visible = True PictureBox18.Visible = False rosado.Visible = False End If If tiempo.Text = "47" Then amarillo4.Visible = False seg5.Text = "free" Timer5.Stop() End If
  • 5. If tiempo.Text = "5" Then Timer4.Start() seg4.Text = "5" morado.Visible = False morado.Visible = True PictureBox15.Visible = False End If If tiempo.Text = "10" Then Timer4.Start() seg4.Text = "5" morado.Visible = False morado.Visible = True PictureBox17.Visible = False End If If tiempo.Text = "15" Then Timer4.Start() seg4.Text = "5" morado.Visible = False morado.Visible = True PictureBox23.Visible = False End If If tiempo.Text = "20" Then Timer4.Start() seg4.Text = "5" morado.Visible = True End If If tiempo.Text = "25" Then Timer4.Start() seg4.Text = "17" morado.Visible = False amarillo3.Visible = True PictureBox21.Visible = False End If If tiempo.Text = "42" Then amarillo3.Visible = False seg4.Text = "free" Timer4.Stop() End If If tiempo.Text = "7" Then PictureBox19.Visible = False Timer3.Start() seg3.Text = "7" celeste.Visible = False celeste.Visible = True End If If tiempo.Text = "14" Then PictureBox20.Visible = False
  • 6. Timer3.Start() seg3.Text = "7" celeste.Visible = False celeste.Visible = True End If If tiempo.Text = "21" Then PictureBox27.Visible = False celeste.Visible = False Timer3.Start() seg3.Text = "17" amarillo2.Visible = True End If If tiempo.Text = "38" Then PictureBox28.Visible = False celeste.Visible = False Timer3.Start() seg3.Text = "17" amarillo2.Visible = True End If If tiempo.Text = "55" Then amarillo2.Visible = False seg3.Text = "free" Timer3.Stop() End If If tiempo.Text = "10" Then Timer2.Start() verde.Visible = False seg2.Text = "10" verde.Visible = True End If If tiempo.Text = "20" Then Timer2.Start() seg2.Text = "10" verde.Visible = False verde.Visible = True PictureBox24.Visible = False End If If tiempo.Text = "30" Then Timer2.Start() seg2.Text = "17" verde.Visible = False PictureBox26.Visible = False amarillo1.Visible = True End If If tiempo.Text = "47" Then amarillo1.Visible = False
  • 7. seg2.Text = "free" Timer2.Stop() End If If tiempo.Text = "17" Then PictureBox10.Visible = False Timer1.Start() seg1.Text = "17" amarillo.Visible = True End If If tiempo.Text = "34" Then PictureBox11.Visible = False Timer1.Start() seg1.Text = "17" amarillo.Visible = True PictureBox12.Visible = False End If If tiempo.Text = "51" Then amarillo.Visible = False seg1.Text = "free" Timer1.Stop() End If If tiempo.Text = "55" Then Timer7.Stop() MsgBox("El Simulador a terminado") End If End Sub End Class