Sie sind auf Seite 1von 9

Tarea de sistemas de información

1. Terminar la clase persona tanto en consola como en modo formulario


2. Modifique que lea los datos de un archivo
3. Y que saque fotos por ejemplo
4. Control del Usuario de Windows
5. Trabajo de clases en Windows form por ejemplo cracion controles etc, etc

Ver pag 12 de pagina 2

6 .presente una aplicación de eventos del mouse 8 implemente esa clase

Elaborar las pracgicas 12,3,4 de la guai de practicas

Ejemplo de letras que girana

brazo Robot articulado


interface visual basic con excel
System.Windows.Forms.ListControl

'Imports System.Windows.Forms
Imports System.Windows.Forms.Form
Imports System.Windows.Forms
Module Module1
Dim OBJETO As Form

Sub Main()
OBJETO = New Form()
OBJETO.Show()

Console.ReadLine()
End Sub

End Module
Imports System.Windows.Forms.Form
Imports System.Windows.Forms
Public Class Form1
Dim objeto As Form

Private Sub Button1_Click(sender As Object, e As EventArgs)


Handles Button1.Click
objeto = New Form()
objeto.Show()
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs)


Handles Button2.Click
objeto = New Form1()
objeto.Show()
End Sub

Private Sub Form1_Load(sender As Object, e As EventArgs)


Handles MyBase.Load

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs)


Handles Button3.Click
objeto = New Form()
objeto.Width = 200
objeto.Height = 100
objeto.BackColor = Drawing.Color.Green
objeto.Show()
End Sub
Private WithEvents objeto1 As New Button()
Private Sub Button4_Click(sender As Object, e As
EventArgs) Handles Button4.Click
Dim Formulario1 As Form
Formulario1 = New Form()

objeto1.Left = 50
objeto1.Top = 20
objeto1.Name = "btnnombre"
objeto1.Text = "btnnombre"
Formulario1.Controls.Add(objeto1)
AddHandler objeto1.Click, AddressOf Saludo
Formulario1.Show()
End Sub
Private Sub Saludo(ByVal sender As Object, ByVal e As
EventArgs)
MsgBox("hola")
End Sub

End Class

Aplicaciones de graficos
Pluma
Pincel
Brocha
Imágenes
Datagridview

Clases del luens 09 de abril del 2018


Clase persona
Public Class Persona
Private nombre1 As String
Private dni1 As Integer
Property nombre As String
Get
nombre = nombre1
End Get
Set(value As String)
nombre1 = value
End Set
End Property
Property dni As Integer
Get
dni = dni1
'Return dni
End Get
Set(value As Integer)
dni1 = value
End Set
End Property
Sub New(Optional nombre2 As String = "FULANO", Optional DNI2 As
Integer = 0)
nombre1 = nombre2
dni1 = DNI2
End Sub
Protected Overrides Sub Finalize()
Console.WriteLine(" OBJETO DESTRUIDO")
End Sub
Sub MostrarDatos()
Console.WriteLine(" {0}{1}{2} ", nombre1, vbTab, dni1)
End Sub
End Class
Module Module1
Dim objeto1, objeto2, objeto3 As Persona
Sub Main()
objeto1 = New Persona()
objeto2 = New Persona("zutano")
objeto3 = New Persona("mengano", 23)
objeto1.MostrarDatos()
objeto2.MostrarDatos()
objeto3.MostrarDatos()
objeto3.dni = 123
objeto3.nombre = "JUAN PEREZ"
Console.WriteLine("MODIFICADO")
objeto3.MostrarDatos()
Console.ReadLine()
End Sub
End Module

TAREA ‘ GENERAR 100 OBJETOS DE PERSONAS CUYO NOMBREA NOMBRE1 2,3,99 Y


SUS DNI ALEATORIO

Module Module1
Const N As Integer = 10
Dim A(N) As Persona

Sub Main()
Dim fila As Integer
For fila = 0 To N - 1
A(fila) = New Persona("persona" & fila, Int(Rnd() * 1000000))

Next
For fila = 0 To N - 1
A(fila).MostrarDatos()
Next
Console.ReadLine()
End Sub
End Module

1. NOMBRES SON LETRAS ALETORIAS


2.

Module Module1
Const N As Integer = 10
Dim A(N) As Persona
Dim nletras = 5
Sub Main()
Randomize()
Dim fila, col As Integer
Dim cadena As String
For fila = 0 To N - 1
Dim letra As String
cadena = ""
For col = 1 To 5
letra = Chr(65 + Int(Rnd() * 20))
cadena = cadena + letra
Next
A(fila) = New Persona(cadena, Int(Rnd() * 1000000))
Next
For fila = 0 To N - 1
A(fila).MostrarDatos()
Next
Console.ReadLine()
End Sub
End Module
1. INGRESE N NOBRES Y QUE LUEGO LOS MUESTRES
Module Module1
Dim N As Integer
Dim A(100) As Persona
Sub Main()
' instancio
Console.Write(" CUANTOS DATOS QUIERE INGRESAR ")
N = Console.ReadLine
For fila = 0 To N - 1
A(fila) = New Persona()
Next
' ingreso
For fila = 0 To N - 1
Console.WriteLine(" ingrese nombre {0} ", fila)
A(fila).nombre = Console.ReadLine
Console.WriteLine(" ingrese DNI {0} ", fila)
A(fila).dni = Console.ReadLine
Next
'MUESTRA
Console.WriteLine("DATOS INGRESADOS")
For fila = 0 To N - 1
A(fila).MostrarDatos()
Next
Console.ReadLine()
End Sub

End Module

2. Ingrese los nombres de un archio y dni de un archivo

3. QUE LO MODIFIQUE Y LO GRABE


4. DERIVE LA CLASE ALUMNO
5. DERIVE LA CLASE PROFESOR
6. ENCUENTRE UN LISTADO DE TODOS LOS ALUMNOS APROBADOS
7. ENCUENTRE EL PROMEDIO DE SUELDO DE PROFESORES
8. LOS DATOS QUE LEA DEL EXCEL Y TAMBIEN QUE GRABE PARA EXECEL
9. HACER TO ESO EN MODO FORMULARIO

Das könnte Ihnen auch gefallen