Fabio International


Programmatore Vb.Net ** Fabio Messina
Archivio Posts
Anno 2015

Anno 2009

Anno 2007

Anno 2006
Statistiche
  • Views Home Page: 21.108
  • Views Posts: 100.990
  • Views Gallerie: 0
  • n° Posts: 103
  • n° Commenti: 13

Scrivere solo numeri in una Textbox

Una funzione per far si che una Textbox accetti solo numeri è la seguente:

If (Not IsNumeric(e.KeyChar)) And (Asc(e.KeyChar) <> 8) Then

e.Handled = True

End If

Questo va scritto nell' evento KEYPRESS della textbox
martedì, 12 giu 2007 Ore. 19.11
Ora e Data
Calendario
luglio 2025
lmmgvsd
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003