Visual Basic - evento mousemove

Life is soft - evento anual de software empresarial
 
Vista:

evento mousemove

Publicado por Alexander (1 intervención) el 17/11/2012 23:38:00
Tengo un problema no se como aplicar el evento mousemove en una broma que nos an pedido en clase que consiste en hacer que el boton huya del cursor al intentar clickearlo , Si alguien me puede ayudar a utilizar esto se lo agradeceria mucho
Atte
Alexander
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

evento mousemove

Publicado por Pedro Luis (57 intervenciones) el 18/11/2012 15:44:48
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Command1.Left < 3000 Then
  Command1.Left = Command1.Left + 400
Else
  Command1.Left = Command1.Left - 300
End If
 
If Command1.Top < 3000 Then
  Command1.Top = Command1.Top + 400
Else
  Command1.Top = Command1.Top - 300
End If
 
End Sub
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