473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Numeric Validation

T.
In VB I used to use the function IsNumeric() to test that characters entered
in a field where numeric. What is the C# equivqlent?

Thanks in advance
Nov 17 '05 #1
2 837
You could add a reference to Microsoft.VisualBasic.dll and use the function
Microsoft.VisualBasic.Information.IsNumeric() directly. This is the C++
newsgroup btw.

"T." <T@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
In VB I used to use the function IsNumeric() to test that characters
entered
in a field where numeric. What is the C# equivqlent?

Thanks in advance

Nov 17 '05 #2
T.
Oops Sorry!

"James Park" wrote:
You could add a reference to Microsoft.VisualBasic.dll and use the function
Microsoft.VisualBasic.Information.IsNumeric() directly. This is the C++
newsgroup btw.

"T." <T@discussions.microsoft.com> wrote in message
news:24**********************************@microsof t.com...
In VB I used to use the function IsNumeric() to test that characters
entered
in a field where numeric. What is the C# equivqlent?

Thanks in advance


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: CSDunn | last post by:
Hello, I need to apply validation to two text boxes. One text box named FirstNumber is required to contain only numbers, and be only three digits long. The other text box named SecondNumber...
2
by: T. | last post by:
In VB I used to use the function IsNumeric() to test that characters entered in a field where numeric. What is the C# equivqlent? Thanks
2
by: Chad | last post by:
I have a textbox control, txtMeasurement, that I want to allow only numeric decimal input. I thought to use a client side validation control to ensure that the data entered is of type "Double". ...
1
by: dineshsanduke | last post by:
hi i m new user i created programatic data grid. i want numeric cell validation in data grid view
2
ramprabu
by: ramprabu | last post by:
Hello, I was get some data from a database. I wants to check the data is number or string. How can I solve this problem in c#.net? Regards Ram Prabu
6
by: Kesavan Muthuvel | last post by:
I need a code to check instantly the value in textbox. The code is to not allow users even to enter alpha characters in the textbox. Thank you Kesavan Muthuvel Chennai INDIA
3
by: bipinjohn23 | last post by:
how do you trap keyboard codes for text box in VB2005 ? I'm looking for a code snippet to only allow numeric input in a text box can anyone provide a snippet of code please many thanks
6
by: bluray | last post by:
Hello all, and thanks for taking the time to help me out here. Basically, I am trying to set up a validation rule that correlates with an input mask where the user is required to enter select...
1
by: SAM | last post by:
Evertjan. a écrit : Not working on my Mac :-( (FF2, Safari2) keys with keyCode 48 to 57 need the shiftkey in addition to get a number from alpha keyboard - works with Safari - not with F2...
4
by: buterfly0707 | last post by:
I want validate a separate cells in datagrid. if i want only numbers in a particular cell in the datagrid how can i do it. for example : There is datagrid with 3 columns. ID,Name,Phone...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.