Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 26th, 2012, 8:09 PM   #1
charny
Newbie
 
Join Date: Jan 2010
Posts: 19
Rep Power: 0 charny is on a distinguished road
Thumbs up [VIDEO] A TextBox that only accepts decimal numbers

Hey guys, I decided to revive Charny Coding, my youtube coding channel. I added a new video that will show you how to make a TextBox that only accepts decimal numbers in C#.

http://www.youtube.com/watch?v=v64nmC1pmls

Subscribe to our channel and like our Facebook page for the upcoming videos & announcements!

Feedback is greatly appreciated!
charny is offline   Reply With Quote
Old Feb 12th, 2015, 1:03 AM   #2
bonave
Newbie
 
Join Date: Jun 2010
Posts: 6
Rep Power: 0 bonave is on a distinguished road
Re: [VIDEO] A TextBox that only accepts decimal numbers

simple you can use Regex

System.Text.RegularExpressions.Regex.IsMatch(textBox1.Text, "[ ^ 0-9]")

Source....Numeric Only Textbox

Bonave
bonave is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Charny Coding - C#] A TextBox that only accepts numbers [Video] charny C# 2 Nov 22nd, 2011 4:27 AM
Identify creditcard numbers shorvath Sed and Awk 1 Feb 2nd, 2011 1:32 PM
Regex matching numbers only, with a single optional decimal point? stickynote427 C# 1 Mar 9th, 2010 1:44 AM
Positive and Negative numbers - won't compile "if" or "else" statements 3dserge C++ 13 Feb 26th, 2009 12:41 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC