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

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Reconhecer a tecla F5
rlinop
PORTO ALEGRE
RS - BRASIL
Postada em 23/09/2004 11:43 hs            
Olá,
Estou tentando colocar no evento OnKeyPress do form do navegador que estou tentando fazer para que quando for pressionado a tecla F5, ele atualiza a página, já tentei desta forma:


Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 68 Then
WebBrowser1.Refresh
End If
End Sub

e também desta:


Private Sub Form_KeyPress(KeyAscii As Integer)
If VbKeyF5 Then
WebBrowser1.Refresh
End If
End Sub


mas nenhuma das duas funcionou, alguém saberia me dizer como é o correto?

Agradecido,
Rafael Portal
     
João Ricardp
não registrado
Postada em 23/09/2004 14:38 hs   
Utilize :-
Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyF5 Then
executa a rotinA    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-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página