🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #346

Re: mi manca poco...

#346
From: Morrie
Date: Wed, 06 Sep 2006 21:26
24 lines
1862 bytes
Ciuchino ha scritto:
> Ragazzi AIUTONE x una gran cazzata che non trovo !!!
> 
> Ho fatto un breve programma che prevede l'inserimento di un prezzo.
> Come cavolo si fa a far inserire nel TEXT solo numeri e non lettere ?!!?
> 
> Mi vergogno a chiedervelo ma non trovo nulla che mi aiuti...
> 
> Ps. dimenticavo ma...  vi sarete accorti ugualemnte, sono ai primi passi :-P
> 
> 
> 

Ciao,
nell'evento keypress della text box metti il seguente codice:

  If (Not IsNumeric(e.KeyChar)) Then
             e.Handled = True
         End If

Cos� qualsiasi tasto diverso da un numero verr� rifiutato e come se non 
fosse mai stato premuto.

Ciao!!!
Technical Details
Message-ID: <44ff3d20$0$15878$4fafbaef@reader2.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!feeder.news-service.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!news.mailgate.org!nntp.infostrada.it!feeder.news.tin.it!spool.news.tin.it!not-for-mail
References: <44ff3b8b$0$995$5fc30a8@news.tiscali.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,571c1c69b11bcfa0
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!feeder.news-service.com!txtfeed1.tudelft.nl!tudelft.nl!txtfeed2.tudelft.nl!news.mailgate.org!nntp.infostrada.it!feeder.news.tin.it!spool.news.tin.it!not-for-mail
Date: Wed, 06 Sep 2006 23:26:47 +0200
From: Morrie <morrie@katamail.com>
User-Agent: Mozilla Thunderbird 1.5.0.5 (Windows/20060719)
MIME-Version: 1.0
Newsgroups: free.it.visual-basic
Subject: Re: mi manca poco...
References: <44ff3b8b$0$995$5fc30a8@news.tiscali.it>
In-Reply-To: <44ff3b8b$0$995$5fc30a8@news.tiscali.it>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 24
Message-ID: <44ff3d20$0$15878$4fafbaef@reader2.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 82.61.42.52
X-Trace: 1157578016 reader2.news.tin.it 15878 82.61.42.52:1174
X-Complaints-To: Please send abuse reports to abuse@tin.it