Visual Basic - AYUDenmee

Life is soft - evento anual de software empresarial
 
Vista:

AYUDenmee

Publicado por Daniel Valerio (4 intervenciones) el 15/09/2009 04:55:19
Hola q tal toy haciendo unos botones y mi problema es el siguiente ...
si alguien me puede ayudar ....porfavor se los agradeceria d antemano

Option Explicit
Dim Flag As Boolean

Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Flag Then
Image1.Visible = False
Image2.Visible = True
Flag = False
End If
End Sub

Private Sub UserControl_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Flag = False Then
Image1.Visible = True
Image2.Visible = False
Flag = True
End If
End Sub

MI BOTONO CUANDO SE PASA EL MOUSE POR ENCIAM CAMBIA D IMAGEN ESO STA OKEY PERO SI QUIERO PULSA UN CLICK Y QIERO Q M CAMBIE D IMAGEN COMO LO HARIA ADEMAS LO INTENTE CON EL MOUSEUP Y MOUSEDOWN LE DOY CLIC CAMBIA PERO CUANDO SAKO SE REGRESA AL PRIMERO COMO ERA AL PRINCIPIO COMO LO HAGO PARA PONERLO STATQO HASTA DARLE UN CLICK D NUEVO RECIEN REGRESEE AL PRINCIPIO COMO ERAA...
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:AYUDenmee

Publicado por jaime guerrero (29 intervenciones) el 15/09/2009 18:05:51
maneja variables.

ya que cuando le das clic cambia de imagen, y al perder el mouse tambien cambia, le hace caso a la accion del raton.

puede poner una variable que pase de true a false cuando das clic, y que cuando pasas el mouse pregunte, la variable es true, entonces cambia imagen.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar