/
Forside
/
Teknologi
/
Udvikling
/
VB/Basic
/
Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn
*
Kodeord
*
Husk mig
Brugerservice
Kom godt i gang
Bliv medlem
Seneste indlæg
Find en bruger
Stil et spørgsmål
Skriv et tip
Fortæl en ven
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
gandalf
836
7
AntonV
790
8
strarup
750
9
Benjamin...
700
10
tom.kise
610
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 :
177558
Tips :
31968
Nyheder :
719565
Indlæg :
6408914
Brugere :
218888
Månedens bedste
Årets bedste
Sidste års bedste
Copyright © 2000-2024 kandu.dk. Alle rettigheder forbeholdes.