/
Forside
/
Teknologi
/
Udvikling
/
VB/Basic
/
Nyhedsindlæg
Login
Brugernavn
*
Kodeord
*
Husk mig
Brugerservice
Kom godt i gang
Bliv medlem
Seneste indlæg
Stil et spørgsmål
Skriv et tip
Pointsystemet
Kontakt Kandu.dk
Emnevisning
Kategorier
Alfabetisk
Karriere
Interesser
Teknologi
Reklame
Top 10 brugere
VB/Basic
#
Navn
Point
1
berpox
2425
2
pete
1435
3
CADmageren
1251
4
gibson
1230
5
Phylock
887
6
AntonV
790
7
strarup
750
8
Benjamin...
700
9
tom.kise
610
10
EXTERMINA..
600
monitor text-input
Fra :
asd987
Dato :
23-11-04 09:25
Hello,
I want to play a sound when certain characters are types in a textbox. So
what I need to do is to check what character is typed and then perform an
action.
How can I monitor which character is typed?
Thanks,
Sjoerd
Harald Staff (
23-11-2004
)
Kommentar
Fra :
Harald Staff
Dato :
23-11-04 09:41
Hi Sjoerd
A textbox has KeyDown, KeyPress and KeyUp events, all reflecting what's
being typed:
Private Sub Txt1_KeyDown(KeyCode As Integer, Shift As Integer)
Debug.Print "Key " & KeyCode & " going gown"
End Sub
Private Sub Txt1_KeyPress(KeyAscii As Integer)
Debug.Print Chr(KeyAscii) & " is entered"
End Sub
Private Sub Txt1_KeyUp(KeyCode As Integer, Shift As Integer)
Debug.Print "Key " & KeyCode & " going up"
End Sub
HTH. Best wishes Harald
"asd987" <asd987@home.nl> skrev i melding
news:cnus45$abc$1@news6.zwoll1.ov.home.nl...
> Hello,
>
> I want to play a sound when certain characters are types in a textbox. So
> what I need to do is to check what character is typed and then perform an
> action.
>
> How can I monitor which character is typed?
>
> Thanks,
>
> Sjoerd
>
>
Søg
Alle emner
Teknologi
Udvikling
VB/Basic
Indstillinger
Spørgsmål
Tips
Usenet
Reklame
Statistik
Spørgsmål :
177819
Tips :
31980
Nyheder :
719565
Indlæg :
6410972
Brugere :
218912
Månedens bedste
Årets bedste
Sidste års bedste
Copyright © 2000-2026 kandu.dk. Alle rettigheder forbeholdes.