lenguaje de programacion guia i by www.tutomundi.org

Page 54

Me.BackColor = RGB(R, G, B) Me.Width = CInt(Rnd * TW) Me.Height = CInt(Rnd * TH) COLOR = COLOR + 1 End If End Sub Private Sub Txtletra_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then CmdOk.SetFocus End If End Sub Arreglo de Controles.-

Colocar un control timer con propiedad: Interval=60 Enabled=false

Lbmeta

Control Image Nombre Carro dar el mismo nombre a los dos Private Sub Cmdstop_Click() Timer1.Enabled = false End Sub Private Sub CmdStart_Click() Timer1.Enabled = True Carro(0).Left = 0 Carro(1).Left = 0 End Sub Private Sub Timer1_Timer() Dim Nro As Integer Randomize Do Nro = Int(Rnd * 10) Loop Until (Nro = 1) Or (Nro = 0)


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.