Beruflich Dokumente
Kultur Dokumente
'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
End Sub
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
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
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