Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Introducción a la programación

Actividad clase grabada sesión 3

Alumno: Victor Daniel Rascon Marquez


Profesor: Ing. Elizabeth Mayela Sánchez Salinas
Carrera: Ingeniería petrolera y energías renovables
3er Grado
Índice
Comprobación de la identidad, el estado y el comportamiento de objetos .......................................... 1
Codigo Form1Designer.vb ................................................................................................................... 1
Codigo Form1 ...................................................................................................................................... 2
Ejecucion............................................................................................................................................. 3
Comprobación de la identidad, el estado y el comportamiento de
objetos

Codigo Form1Designer.vb

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Formulario
Inherits System.Windows.Forms.Form

'Form overrides dispose to clean up the component list.


<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub

'Required by the Windows Form Designer


Private components As System.ComponentModel.IContainer

1
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.Cambiar = New System.Windows.Forms.Button()
Me.SuspendLayout()
'
'Cambiar
'
Me.Cambiar.Location = New System.Drawing.Point(80, 39)
Me.Cambiar.Name = "Cambiar"
Me.Cambiar.Size = New System.Drawing.Size(126, 23)
Me.Cambiar.TabIndex = 0
Me.Cambiar.Text = "Cambiar Color"
Me.Cambiar.UseVisualStyleBackColor = True
'
'Formulario
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(284, 111)
Me.Controls.Add(Me.Cambiar)
Me.Name = "Formulario"
Me.Text = "Cambio de estado"
Me.ResumeLayout(False)

End Sub
Friend WithEvents Cambiar As System.Windows.Forms.Button

End Class

Codigo Form1

Public Class Formulario

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


Handles Cambiar.Click
Me.BackColor = Color.Coral
Cambiar.BackColor = Color.LightSkyBlue
End Sub
End Class

2
Ejecucion

You might also like