Visual Basic - ayuda x favor

Life is soft - evento anual de software empresarial
 
Vista:

ayuda x favor

Publicado por novatillo (1 intervención) el 11/04/2003 10:04:06
me gustaria saber como hacer para elaborar por codigo que al presionar dos teclas concretas se ponga visible un Command button.
soy novato, muchas gracias
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:ayuda x favor

Publicado por Julio Aguilar (92 intervenciones) el 11/04/2003 17:55:13
podes hacerlo con el evento keydown del formulario.
ejemplo:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Static Key1 As Integer
If KeyCode = 17 Then
Key1 = KeyCode
Else
If Key1 = 17 And KeyCode = 90 Then
Command1.Visible = True
Key1 = 0
End If
End If
End Sub

En este ejemplo si precionas la combinacion <Ctrol>+<Z> se te mostrara el boton.
Espero te funcione pone un formulario y un boton con la propiedad visible =False.
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