By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 910 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Typed Dataset and Numeric Only Fields in VB.Net 2005 ?

P: n/a
My textbox is bound to Typed Dataset, with a Numeric Field, I want the user
should not type anything in textbox except Numeric, how can I ?
The data type is : Sql Server Decimal(5,2)

Currently, VB.Net automatically raise error on lost focus of textbox, but I
don't want user to type anything else except Numeric, any property to be set
in Textbox?

Best Regards,

Luqman
Apr 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Luqman,

Isnumeric(textbox.text) test on numeric,

Be aware that it takes every item that can be numeric in the
culture/language setting of a client.

For version 2005 is instead of the textbox for this the masked textbox,
however

http://msdn2.microsoft.com/en-us/lib...ox(VS.80).aspx

I hope this helps,

Cor

"Luqman" <pe*******@cyber.net.pk> schreef in bericht
news:%2****************@TK2MSFTNGP09.phx.gbl...
My textbox is bound to Typed Dataset, with a Numeric Field, I want the
user
should not type anything in textbox except Numeric, how can I ?
The data type is : Sql Server Decimal(5,2)

Currently, VB.Net automatically raise error on lost focus of textbox, but
I
don't want user to type anything else except Numeric, any property to be
set
in Textbox?

Best Regards,

Luqman

Apr 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.