USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Muito Facil - Key ASCII
Jr
não registrado
ENUNCIADA !
Postada em 10/09/2004 11:18 hs   
COmo faço pra apertar "ESC" fechar o Form ?
   
Righi
BELO HORIZONTE
MG - BRASIL
Postada em 10/09/2004 11:44 hs            
Coloque esse código no form e marque a propiedade Keypreview como TRUE
 
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then
 unload me
End If
End Sub

EmoçõesRighiEmoções

Beginner Game Developer!

duduchaves@uai.com.br

     
Fuintersoft1
SAO PAULO
SP - BRASIL
Postada em 10/09/2004 11:47 hs            
if KeyAscii = 27 then ' KeyPress(KeyAscii As Integer)
if keycode = vbKeyEscape then ' KeyUp(KeyCode As Integer, Shift As Integer)
 
'fecha
Unload Me
'fecha toda a aplicação
end
 
TÓPICO EDITADO
   
Roseli
não registrado
Postada em 10/09/2004 11:47 hs   
outra maneira de se usar o "Esc"
 
Private Sub Usuario_KeyPress(KeyAscii As Integer)
 
If KeyAscii = 27 Then
   Unload Me
   End
End If
 
end sub
     
Página(s): 1/1    


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2025   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página