Article View: free.it.visual-basic
Article #3968Re: Lettere e Numeri
From: gino
Date: Tue, 04 Dec 2001 20:20
Date: Tue, 04 Dec 2001 20:20
31 lines
1783 bytes
1783 bytes
Private Sub Text1_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 48 To 57
' per tasti numerici da 0 a 9
Case 8
' per il tasto Canc
Case Else
' per tutti gli altri tasti
Beep
KeyAscii = 0
End Select
End Sub
prova cos�
"Paolo" <paomal@libero.it> ha scritto nel messaggio
news:hsfJ7.109421$sq5.5213750@news.infostrada.it...
> Sono un neofita di VB6, lo sto' praticando da poco tempo e ho
> bisogno di una mano da qualcuno piu' esperto di me.
> Vorrei fare in modo che in una o piu' textbox possa solo digitare
> numeri e non lettere e che quando sbaglio mi appaia un messaggio
> di errore.
> Vi Ringrazio anticipatamente
> Paolo
>
>
>
>
>
Technical Details
Message-ID:
<peaP7.962$1o4.49177@twister2.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!nntp.infostrada.it!cyclone2.libero.it!twister2.libero.it.POSTED!not-for-mailReferences:
<hsfJ7.109421$sq5.5213750@news.infostrada.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,7489f85d3f50b932 X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2001-12-04 12:20:42 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!nntp.infostrada.it!cyclone2.libero.it!twister2.libero.it.POSTED!not-for-mail From: "gino" <ugino@libero.it> Newsgroups: free.it.visual-basic References: <hsfJ7.109421$sq5.5213750@news.infostrada.it> Subject: Re: Lettere e Numeri Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <peaP7.962$1o4.49177@twister2.libero.it> Date: Tue, 04 Dec 2001 20:20:37 GMT NNTP-Posting-Host: 151.25.103.134 X-Complaints-To: abuse@libero.it X-Trace: twister2.libero.it 1007497237 151.25.103.134 (Tue, 04 Dec 2001 21:20:37 MET) NNTP-Posting-Date: Tue, 04 Dec 2001 21:20:37 MET Organization: [Infostrada]