SlideShare uma empresa Scribd logo
1 de 2
Public Class Form1

    Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e
As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
        Me.PictureBox1.Left = Me.HScrollBar1.Value
    End Sub

    Private Sub VScrollBar1_Scroll(ByVal sender As System.Object, ByVal e
As System.Windows.Forms.ScrollEventArgs) Handles VScrollBar1.Scroll
        Me.PictureBox1.Top = Me.VScrollBar1.Value
    End Sub

    Private Sub RadioButton1_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton1.CheckedChanged
        Me.BackColor = Color.Yellow
    End Sub

    Private Sub RadioButton2_CheckedChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
RadioButton2.CheckedChanged
        Me.BackColor = Color.Blue
    End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
        If Me.pgbsegundos.Value >= Me.pgbsegundos.Maximum Then
             Me.Timer1.Stop()
        Else
             pgbsegundos.Value = pgbsegundos.Value + 10
        End If
    End Sub

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

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
        Me.Timer1.Start()
        Me.pgbsegundos.Value = 0
    End Sub
End Class

Mais conteúdo relacionado

Mais procurados

Lesson 07 Actions and Commands in WPF
Lesson 07 Actions and Commands in WPFLesson 07 Actions and Commands in WPF
Lesson 07 Actions and Commands in WPFQuang Nguyễn Bá
 
JAVA GUI PART III
JAVA GUI PART IIIJAVA GUI PART III
JAVA GUI PART IIIOXUS 20
 
Java eventhandling
Java eventhandlingJava eventhandling
Java eventhandlingArati Gadgil
 
openFrameworks 007 - events
openFrameworks 007 - eventsopenFrameworks 007 - events
openFrameworks 007 - eventsroxlu
 
Ejercicio sql server vs visual .net
Ejercicio sql server vs visual .netEjercicio sql server vs visual .net
Ejercicio sql server vs visual .netAyuda Universidad
 
Introj Query Pt2
Introj Query Pt2Introj Query Pt2
Introj Query Pt2kshyju
 
20. Calculating most probable distribution of a species with Niche of Occurr...
20.  Calculating most probable distribution of a species with Niche of Occurr...20.  Calculating most probable distribution of a species with Niche of Occurr...
20. Calculating most probable distribution of a species with Niche of Occurr...modestrsoftware
 
Java Event Handling
Java Event HandlingJava Event Handling
Java Event HandlingShraddha
 
11.- Calculating species distribution for different periods with ModestR (Ve...
11.-  Calculating species distribution for different periods with ModestR (Ve...11.-  Calculating species distribution for different periods with ModestR (Ve...
11.- Calculating species distribution for different periods with ModestR (Ve...modestrsoftware
 
Promises, promises, and then observables
Promises, promises, and then observablesPromises, promises, and then observables
Promises, promises, and then observablesStefan Charsley
 
Unidirectional Data Flow with Reactor
Unidirectional Data Flow with ReactorUnidirectional Data Flow with Reactor
Unidirectional Data Flow with ReactorJason Larsen
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in javaGoogle
 
7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)
7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)
7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)modestrsoftware
 

Mais procurados (20)

Lesson 07 Actions and Commands in WPF
Lesson 07 Actions and Commands in WPFLesson 07 Actions and Commands in WPF
Lesson 07 Actions and Commands in WPF
 
JAVA GUI PART III
JAVA GUI PART IIIJAVA GUI PART III
JAVA GUI PART III
 
Java eventhandling
Java eventhandlingJava eventhandling
Java eventhandling
 
openFrameworks 007 - events
openFrameworks 007 - eventsopenFrameworks 007 - events
openFrameworks 007 - events
 
Ejercicio sql server vs visual .net
Ejercicio sql server vs visual .netEjercicio sql server vs visual .net
Ejercicio sql server vs visual .net
 
Event handling in Java(part 2)
Event handling in Java(part 2)Event handling in Java(part 2)
Event handling in Java(part 2)
 
Event handling in Java(part 1)
Event handling in Java(part 1)Event handling in Java(part 1)
Event handling in Java(part 1)
 
Introj Query Pt2
Introj Query Pt2Introj Query Pt2
Introj Query Pt2
 
20. Calculating most probable distribution of a species with Niche of Occurr...
20.  Calculating most probable distribution of a species with Niche of Occurr...20.  Calculating most probable distribution of a species with Niche of Occurr...
20. Calculating most probable distribution of a species with Niche of Occurr...
 
Correction s+ rie_vb
Correction s+ rie_vbCorrection s+ rie_vb
Correction s+ rie_vb
 
Java Event Handling
Java Event HandlingJava Event Handling
Java Event Handling
 
11.- Calculating species distribution for different periods with ModestR (Ve...
11.-  Calculating species distribution for different periods with ModestR (Ve...11.-  Calculating species distribution for different periods with ModestR (Ve...
11.- Calculating species distribution for different periods with ModestR (Ve...
 
Promises, promises, and then observables
Promises, promises, and then observablesPromises, promises, and then observables
Promises, promises, and then observables
 
Unidirectional Data Flow with Reactor
Unidirectional Data Flow with ReactorUnidirectional Data Flow with Reactor
Unidirectional Data Flow with Reactor
 
Introduction to Jquery
Introduction to JqueryIntroduction to Jquery
Introduction to Jquery
 
Ete programs
Ete programsEte programs
Ete programs
 
Advanced Jquery
Advanced JqueryAdvanced Jquery
Advanced Jquery
 
Event handling
Event handlingEvent handling
Event handling
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
 
7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)
7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)
7.- ModestR tools for taxonomy (Version ModestR v5.3 or higher)
 

Destaque (9)

Recuerdos[1]..
Recuerdos[1]..Recuerdos[1]..
Recuerdos[1]..
 
LUPI
LUPILUPI
LUPI
 
Claras
ClarasClaras
Claras
 
Power Point
Power PointPower Point
Power Point
 
Drets d'exàmens | AJEC.cat
Drets d'exàmens | AJEC.catDrets d'exàmens | AJEC.cat
Drets d'exàmens | AJEC.cat
 
La Excursion A Somiedo
La Excursion A SomiedoLa Excursion A Somiedo
La Excursion A Somiedo
 
Betsy\'s Cards
Betsy\'s CardsBetsy\'s Cards
Betsy\'s Cards
 
Rock
RockRock
Rock
 
G3
G3G3
G3
 

Semelhante a PROGRAMA DE EJEMPLO

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
 
Puerto serialarduino
Puerto serialarduinoPuerto serialarduino
Puerto serialarduinozadkiel_123
 
Código fuente del software educativo
Código fuente del software educativoCódigo fuente del software educativo
Código fuente del software educativoLeo Chavez Martinez
 
Código fuente del software educativo
Código fuente del software educativoCódigo fuente del software educativo
Código fuente del software educativoLeo Chavez Martinez
 
Código fuente del software educativo
Código fuente del software educativoCódigo fuente del software educativo
Código fuente del software educativoLeo Chavez Martinez
 
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITYDOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITYGOKUL SREE
 

Semelhante a PROGRAMA DE EJEMPLO (20)

.net progrmming part4
.net progrmming part4.net progrmming part4
.net progrmming part4
 
Trabajo de case
Trabajo de caseTrabajo de case
Trabajo de case
 
Calculator code
Calculator codeCalculator code
Calculator code
 
Latihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/PerulanganLatihan visual basic 2010/Looping/Perulangan
Latihan visual basic 2010/Looping/Perulangan
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
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
 
Trabajo de case
Trabajo de caseTrabajo de case
Trabajo de case
 
Puerto serialarduino
Puerto serialarduinoPuerto serialarduino
Puerto serialarduino
 
Código fuente del software educativo
Código fuente del software educativoCódigo fuente del software educativo
Código fuente del software educativo
 
Código fuente del software educativo
Código fuente del software educativoCódigo fuente del software educativo
Código fuente del software educativo
 
Código fuente del software educativo
Código fuente del software educativoCódigo fuente del software educativo
Código fuente del software educativo
 
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITYDOT NET LAB PROGRAM PERIYAR UNIVERSITY
DOT NET LAB PROGRAM PERIYAR UNIVERSITY
 
VB net lab.pdf
VB net lab.pdfVB net lab.pdf
VB net lab.pdf
 
Cara membuat software dj
Cara membuat software djCara membuat software dj
Cara membuat software dj
 

Mais de mhormech

2. introduccion a vs .net
2.  introduccion a vs .net2.  introduccion a vs .net
2. introduccion a vs .netmhormech
 
1. introduccion a la plataforma microsoft .net
1.  introduccion a la plataforma microsoft .net1.  introduccion a la plataforma microsoft .net
1. introduccion a la plataforma microsoft .netmhormech
 
Sd hdi 042008
Sd hdi 042008Sd hdi 042008
Sd hdi 042008mhormech
 
ITIL presentation
ITIL presentationITIL presentation
ITIL presentationmhormech
 
Competenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaaCompetenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaamhormech
 
Competenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaaCompetenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaamhormech
 
Recursos humanos
Recursos humanosRecursos humanos
Recursos humanosmhormech
 
Plan de gestión de la calidad
Plan de gestión de la calidadPlan de gestión de la calidad
Plan de gestión de la calidadmhormech
 
Presentación six sigma
Presentación six sigmaPresentación six sigma
Presentación six sigmamhormech
 
Guia2 controles vb.net
Guia2 controles vb.netGuia2 controles vb.net
Guia2 controles vb.netmhormech
 
Calidad - Total Quality Management
Calidad - Total Quality ManagementCalidad - Total Quality Management
Calidad - Total Quality Managementmhormech
 
Por qu fracasan_los_gerentes_de_proyecto
Por qu fracasan_los_gerentes_de_proyectoPor qu fracasan_los_gerentes_de_proyecto
Por qu fracasan_los_gerentes_de_proyectomhormech
 
Iniciación
IniciaciónIniciación
Iniciaciónmhormech
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto productomhormech
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto productomhormech
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto productomhormech
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto productomhormech
 
Imagenes base de datos
Imagenes base de datosImagenes base de datos
Imagenes base de datosmhormech
 

Mais de mhormech (20)

2. introduccion a vs .net
2.  introduccion a vs .net2.  introduccion a vs .net
2. introduccion a vs .net
 
1. introduccion a la plataforma microsoft .net
1.  introduccion a la plataforma microsoft .net1.  introduccion a la plataforma microsoft .net
1. introduccion a la plataforma microsoft .net
 
Sd hdi 042008
Sd hdi 042008Sd hdi 042008
Sd hdi 042008
 
ITIL presentation
ITIL presentationITIL presentation
ITIL presentation
 
Competenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaaCompetenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaa
 
Competenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaaCompetenciasdeun gerentedeproyectodaa
Competenciasdeun gerentedeproyectodaa
 
Recursos humanos
Recursos humanosRecursos humanos
Recursos humanos
 
Plan de gestión de la calidad
Plan de gestión de la calidadPlan de gestión de la calidad
Plan de gestión de la calidad
 
Presentación six sigma
Presentación six sigmaPresentación six sigma
Presentación six sigma
 
Guia2 controles vb.net
Guia2 controles vb.netGuia2 controles vb.net
Guia2 controles vb.net
 
Calidad
CalidadCalidad
Calidad
 
Calidad - Total Quality Management
Calidad - Total Quality ManagementCalidad - Total Quality Management
Calidad - Total Quality Management
 
Por qu fracasan_los_gerentes_de_proyecto
Por qu fracasan_los_gerentes_de_proyectoPor qu fracasan_los_gerentes_de_proyecto
Por qu fracasan_los_gerentes_de_proyecto
 
Iniciación
IniciaciónIniciación
Iniciación
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto producto
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto producto
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto producto
 
Ciclo de vidad de proyecto producto
Ciclo de vidad de proyecto productoCiclo de vidad de proyecto producto
Ciclo de vidad de proyecto producto
 
Gpi sena
Gpi senaGpi sena
Gpi sena
 
Imagenes base de datos
Imagenes base de datosImagenes base de datos
Imagenes base de datos
 

PROGRAMA DE EJEMPLO

  • 1. Public Class Form1 Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll Me.PictureBox1.Left = Me.HScrollBar1.Value End Sub Private Sub VScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VScrollBar1.Scroll Me.PictureBox1.Top = Me.VScrollBar1.Value End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged Me.BackColor = Color.Yellow End Sub Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged Me.BackColor = Color.Blue End Sub
  • 2. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If Me.pgbsegundos.Value >= Me.pgbsegundos.Maximum Then Me.Timer1.Stop() Else pgbsegundos.Value = pgbsegundos.Value + 10 End If End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Timer1.Start() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Timer1.Start() Me.pgbsegundos.Value = 0 End Sub End Class