Escolar Documentos
Profissional Documentos
Cultura Documentos
|ñ |
|
|
|
Capítulo 1:
En Word crea las caritas y colócalas dentro de los cuadros de imágenes con su propiedad
Stretch en True, las líneas hazlas más gruesas en BorderWidth 3 y BorderColor azul.
n1 = Int(Rnd * 10) + 1
n2 = Int(Rnd * 10) + 1
Label1.Caption = n1
Label2.Caption = n2
End Sub
Randomize
Call azar
Image1.Visible = False
Image2.Visible = False
End Sub
Call azar
Text1.Text = ""
Label3.Caption = ""
Image1.Visible = False
Image2.Visible = False
End Sub
El botón Revisar
Label3.Caption = "Bien"
Image1.Visible = True
Else
Label3.Caption = "Mal"
Image1.Visible = False
Image2.Visible = True
End If
End Sub
El botónSalir
Private Sub Command3_Click()
Unload Me
End
End Sub
Capítulo 2:
Crea un formulario con nueve etiquetas, dos de ellas serán las instrucciones y a las que
contendrán los números (seis) cámbiales su Propiedad Alignment a 2-Center, BackColor
blanco, BorderStyle a 1-Fixed Single y tres botones, ahora
La etiqueta 4
Label4.Caption = Source
Source.Visible = False
End Sub
La etiqueta 5
Label5.Caption = Source
Source.Visible = False
End Sub
La etiqueta 6
Label6.Caption = Source
Source.Visible = False
End Sub
El botónIniciar
Label4.Caption = ""
Label5.Caption = ""
Label6.Caption = ""
Label7.Caption = ""
Label1.Visible = True
Label2.Visible = True
Label3.Visible = True
Call azar
End Sub
El botón Resultado
Label7.Caption = "Bien"
Else
Label7.Caption = "Mal"
End If
End Sub
El botón Salir
Unload Me
End
End Sub
El formulario
Private Sub Form_Load()
Randomize
Call azar
End Sub
|||
Crea un formulario con dos etiquetas, dos cajas de texto y tres botones, escribe el siguiente
código:
fecnac = CDate(Text1)
End Sub
El botón Nuevo Cálculo
Text1 = ""
Text2 = ""
Text1.SetFocus
End Sub
El botónSalir
Unload Me
End
End Sub
Capítulo 4:
Crea un formulario con ocho etiquetas, ocho cajas de texto, un control Microsoft
HierarchicalFlexGrid (haz clic con el botón derecho del ratón sobre la caja de herramientas
y haz clic en Componentes, selecciona la casilla Microsoft HierarchicalFlexGrid Control
6.0 y haz clic en Aceptar) tres botones y escribe el siguiente código:
Dobleclicsobre el formulario
grdmenu.Cols = 2
grdmenu.Rows = 8
grdmenu.FixedCols = 0
grdmenu.FixedRows = 1
grdmenu.TextArray(0) = "Menú"
grdmenu.TextArray(1) = "Precio"
grdmenu.TextArray(2) = "Burrito"
grdmenu.TextArray(3) = "9.50"
grdmenu.TextArray(4) = "Burger"
grdmenu.TextArray(5) = "12.75"
grdmenu.TextArray(6) = "Torta"
grdmenu.TextArray(7) = "8.25"
grdmenu.TextArray(8) = "Refresco"
grdmenu.TextArray(9) = "4.00"
grdmenu.TextArray(10) = "Cerveza"
grdmenu.TextArray(11) = "15.60"
grdmenu.TextArray(12) = "Ensalada"
grdmenu.TextArray(13) = "14.45"
grdmenu.TextArray(15) = "6.90"
End Sub
El botónAceptar
burrito = Val(Text1)
burger = Val(Text2)
torta = Val(Text3)
refresco = Val(Text4)
cerveza = Val(Text5)
ensalada = Val(Text6)
hotdog = Val(Text7)
ventatotal = burrito * 9.5 + burger * 12.75 + torta * 8.25 + refresco * 4.60 + cerveza * 15.6
+ ensalada * 14.45 + hotdog * 6.9
Text8 = Str(ventatotal)
End Sub
El botón Limpiar
End Sub
El botónSalir
Unload Me
End
End Sub
Capítulo 5:
Crea un formulario con cinco etiquetas, tres cajas de texto, un marco, tres botones y escribe
el siguiente código:
El botónConvertir
Case Else
Call Command2_Click
Exit Sub
EndSelect
Label4 = Text1 & " de " &cadmes& " de " & Text3
End Sub
El botónLimpiar
Text1 = ""
Text2 = ""
Text3 = ""
Text1.SetFocus
End Sub
El botónSalir
End
End If
End Sub
Capítulo 6:
El botónAnálisis
If IsNumeric(Text1) Then
n = CLng(Text1)
m = CLng(Text1)
cad = ""
i=0
j=1
s = sp = si = 0
For j = 1 To n
If (n Mod j = 0) Then
End If
Next j
While (n > 0)
sp = sp + (n Mod 10)
Else
si = si + (n Mod 10)
End If
s = s + (n Mod 10)
n = n \ 10
i=i+1
Wend
may = Mid(Text1, 1, 1)
men = may
While (m > o)
may = m Mod 10
EndIf
EndIf
m = m \ 10
Wend
Text2 = Str(i)
Text3 = Str(si)
Text4 = Str(sp)
Text5 = Str(s)
Text6 = Str(may)
Text7 = Str(men)
Text8 = cad
Else
Text1.SetFocus
End If
End Sub
Text1.SetFocus
End Sub
El botónSalir
End
Else
Cancel = True
Text1.SetFocus
End If
End Sub
Capítulo 7:
Crea un formulario con tres marcos, una caja de texto, dos botones de opción, una caja de
lista, cuatro botones y escribe el siguiente código:
End If
End Sub
El botónAgregar
If IsNumeric(Text1.Text) Then
List1.AddItem Text1.Text
Text1.Text = ""
Text1.SetFocus
Else
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
Text1.SetFocus
End If
End Sub
El botónOrdenar
n = List1.ListCount
ReDima(n)
For i = 0 To n - 1
a(i) = List1.List(i)
Next i
If Option1.Value Then
For i = 0 To n - 2
For j = i + 1 To n - 1
t = a(i)
a(i) = a(j)
a(j) = t
End If
Next j
Next i
End If
Text1.SetFocus
If Option2.Value Then
For i = 0 To n - 2
For j = i + 1 To n - 1
t = a(i)
a(i) = a(j)
a(j) = t
End If
Next j
Next i
End If
List1.Clear
For i = 0 To n - 1
List1.List(i) = a(i)
Next i
Text1.SetFocus
End Sub
Text1 = ""
List1.Clear
Text1.SetFocus
End Sub
El botónSalir
End
End If
End Sub
Capítulo 8:
Crea un formulario con cuatro marcos, seis etiquetas, cinco cajas de texto, un cuadro
combinado, dos cajas de lista, cuatro botones y escribe el siguiente código:
List1.AddItem "Intro.aSistemas"
List1.AddItem "Windows"
List1.AddItem "SoporteTécnico"
List1.AddItem "Redes"
List1.AddItem "MS Visual Basic"
List1.AddItem "Internet"
List2.AddItem "Chihuahua"
List2.AddItem "Campeche"
List2.AddItem "Veracruz"
List2.AddItem "Colima"
List2.AddItem "Yucatán"
List2.AddItem "Sonora"
List2.AddItem "Sinaloa"
List2.AddItem "Puebla"
List2.AddItem "Tabasco"
List2.AddItem "Zacatecas"
Combo1.AddItem "Masculino"
Combo1.AddItem "Femenino"
End Sub
End
Else
Cancel = True
End If
End Sub
End Sub
Text5 = List2
End Sub
El botónGuardar
List1.Enabled = False
List2.Enabled = False
Text1.Locked = True
Text2.Locked = True
Combo1.Locked = True
Text4.Locked = True
Text5.Locked = True
End Sub
El botónLimpiar
List1.Enabled = True
List2.Enabled = True
Text1.Locked = False
Text2.Locked = False
Text3.Locked = False
Combo1.Locked = False
Text4.Locked = False
Text5.Locked = False
Text1 = ""
Text2 = ""
Text3 = ""
Combo1 = ""
Text4 = ""
Text5 = ""
Text1.SetFocus
End Sub
El botónCancelar
List1.Enabled = True
List2.Enabled = True
Text1.Locked = False
Text2.Locked = False
Text3.Locked = False
Combo1.Locked = False
Text4.Locked = False
Text5.Locked = False
End If
End Sub
El botónSalir
Unload Me
End
End Sub
|)||
Crea un formulario con tres etiquetas, dos cajas de texto, tres botones y escribe el siguiente
código:
Dim i As Integer
Dim j As Integer
n = Len(cadena)
ReDiminvertida(n)
For i = 1 To n
invertida(i - 1) = Mid(cadena, i, 1)
Next i
For j = (n - 1) To 0 Step -1
Next j
End Function
El botónInvertir
Text2 = cadinvertida(Text1)
End Sub
El botón Limpiar
Text1 = ""
Text2 = ""
Text1.SetFocus
End Sub
El botónSalir
Unload Me
End
End Sub
|||
Crea un formulario con siete etiquetas, cinco cuadros image, un botón y escribe el siguiente
código:
Source.Move X, Y
End Sub
Label7 = ""
total = o
End Sub
Private Sub Image5_DragDrop(Source As Control, X As Single, Y As Single)
End If
End Sub
Capítulo 11:
El botónSalir
Unload Me
End
End Sub
El botónLimpiar
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text8 = ""
Text9 = ""
Text1.SetFocus
End Sub
×| Agente Turismo Receptivo Doble Titulación En 7m. Por Cordon Bleu. Sorteo 1/2
Beca. Contáctanos!
Cursos-Turismo.EducaOnline.peEnlaces patrocinados
n1 = Val(Text2): n2 = Val(Text3)
n3 = Val(Text4): n4 = Val(Text5)
n5 = Val(Text6): n6 = Val(Text7)
Text8 = Str(promedio)
Text9 = "Excelente"
End If
End If
Text9 = "Bien"
End If
Text9 = "Regular"
End If
If promedio< 8 Then
Text9 = "Mal"
End If
End Sub
Capítulo 12:
Crea un formulario con seis etiquetas, seis cajas de texto, dos botones y escribe el siguiente
código:
El botónLimpiar
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text1.SetFocus
End Sub
El botónImprimir
Printer.Orientation = 1
Printer.FontSize = 12
Printer.Print
Printer.Print
×| PNL - Matriculas Abiertas Los títulos otorgados por la SCPNL tienen validez
internacional.
www.scpnl.clEnlaces patrocinados
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.Print
Printer.EndDoc
End Sub
|