entornos graficos
Post on 26-Sep-2015
225 Views
Preview:
DESCRIPTION
TRANSCRIPT
UNIDAD EDUCATIVA RINCN DEL SABER
PROFESOR: Jos Luis Tarapues MATERIA: Entornos grficos
ALUMNO: Dennis Cando CURSO: 3ro Bachillerato informtica
TEMA: rea y permetro de un rectngulo FECHA: 05/11/2012 NUMERO:
CDIGO
Option Explicit
Dim altura, base, c, d As Integer
Private Sub cmdarea_Click()
Altura = Val (Txtvalor1.Text)
Base = Val (Txtvalor2.Text)
c = base * altura
MsgBox c
End Sub
Private Sub cmdperimetro_Cick()
Altura = Val (Txtvalor1.Text)
Base = Val(Txtvalor2.Text)
c = base + altura
d = c * 2
MsgBox d
End Sub
GRFICOS
Descripcin de las propiedades utilizadas
1.- label 1= nombre: lblvalor1
caption : ingrese valor 12.- label2 = nombre: lblvalor2
caption: ingrese valor 2
3.- text1 = nombre: Txtvalor1 Text: -----------
4.- text1 = nombre: txtvalor2
Text: -----------
5. - command button1= nombre: cmdperimetro Caption: permetro
6. - command button2= nombre: cmdarea
Caption: area
top related