DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    100

    Numeric Text Box

    This should be simple but I can't figure it out. Anyone know how to make a textbox so that you can only input numeric chars?

    Thanks

    Jackie

  2. #2
    Join Date
    Aug 2006
    Posts
    5
    You can use the function isNumeric(textbox.text) then if its false (if not isnumeric(textbox.text))
    blablabla

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Did you try Googling for "windows forms textbox numbers only"? I found this: http://www.knowdotnet.com/articles/n...textboxes.html
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  4. #4
    Join Date
    Mar 2006
    Posts
    100
    Awesome Phil As always a life saver! For the record I did google it but I didn't know a more specific term to use so I had trouble. Thanks man Cheers!

  5. #5
    Join Date
    Jul 2012
    Posts
    5

    Hi follow this link it is for both for decimal and for integer..


Similar Threads

  1. Replies: 1
    Last Post: 04-09-2008, 07:28 AM
  2. Text in an Animated Box!
    By pentacle1 in forum Java
    Replies: 4
    Last Post: 01-05-2006, 06:26 PM
  3. Replies: 4
    Last Post: 11-28-2005, 02:14 PM
  4. Script for scrolling
    By Mark in forum Web
    Replies: 3
    Last Post: 08-30-2001, 11:45 AM
  5. Double Text 1.0
    By George Gilbert in forum vb.announcements
    Replies: 0
    Last Post: 08-19-2001, 11:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links