Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/10/2009, 14:14
Avatar de pkj
pkj
 
Fecha de Ingreso: julio-2006
Ubicación: Órbita sincrónica
Mensajes: 899
Antigüedad: 18 años, 10 meses
Puntos: 29
Respuesta: Ayuda con unos codigos por favor !

Creo que esto es lo que quieres hacer:

Código :
Ver original
  1. Private sub PonColor()
  2.   If imgCohete.Top < 50 Then frmCielo.BackColor = vbBlack
  3.   If imgCohete.Top > 50 And imgCohete.Top < 100 Then frmCielo.BackColor = vbBlue
  4.   If imgCohete.Top > 100 Then frmCielo.BackColor = vbCyan
  5. End Sub
  6.  
  7. Private Sub cmdAscender_Click()
  8.   imgCohete.Top = imgCohete.Top - 10
  9.   PonColor
  10. End Sub
  11.  
  12. Private Sub cmdDescender_Click()
  13.   imgCohete.Top = imgCohete.Top + 10
  14.   PonColor
  15. End Sub

Saludos