ProT Posted May 12, 2006 at 05:46 PM Report #27117 Posted May 12, 2006 at 05:46 PM Boas pessoal é o seguinte tenho um textbox e queria que quando ele tivesse la o cursor e carregase na tecla delete ele nao apagasse (ou seja que não fizesse nada) eu fiz este código mas não funka If (AscW(e.KeyValue) = 127) Then e.Handled = True End If fiz isto no evento keydown do textbox Agradeço toda ajuda possivel Nota: estou a utilizar o Microsoft Visual Studio .NET 2003 Cumps
joninho Posted May 13, 2006 at 11:50 AM Report #27217 Posted May 13, 2006 at 11:50 AM muda o titulo do teu topico entao mete um [VB.net] atras das cenas. e opá eu nao t consigo ajudar espera por alguem.. 😉
ProT Posted May 13, 2006 at 06:11 PM Author Report #27258 Posted May 13, 2006 at 06:11 PM Boas Esqueçam pessoal já consegui Cumps
Guest id194 Posted May 13, 2006 at 06:13 PM Report #27259 Posted May 13, 2006 at 06:13 PM no mesmo evento (KeyDown), exprimenta antes: If e.KeyCode = Keys.Delete Then e.Handled = True End If Testado em VB 2005, mas deve funcionar no .NET, se não, tenta algo parecido. ---- EDIT Lol... tava mesmo a submeter isto quando recebo a mensagem "Aviso - enquanto estava a escrever a sua mensagem, foi enviada uma nova resposta a este tópico. Pode querer rever a sua mensagem." 😉 de qualquer maneira, fica aqui...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now