Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
QuestionNumeric Format problem Pin
ansriharsha8-Jul-09 23:37
ansriharsha8-Jul-09 23:37 
Hi ,

i want to specify the maximum number of digits for numeric part and the Decimal part in a text box.

i tried specifying precision and maxlength of the text box but then it if we input the max length then the precesion cannot be inputted and it gets resetted to the maxamount which should not be possible.

like if Maxlength=8

precsion = 2

input required:123456.90 possible

input required : 12345678.89 which is not possible

so is there any way we could specify the format of the numeric part and as well the decimal part. which would restrict for only that particular input format.

like : dddddddd.dd

thanks in advance....


cheers,

sriharsha
AnswerRe: Numeric Format problem Pin
Pete O'Hanlon8-Jul-09 23:43
mvePete O'Hanlon8-Jul-09 23:43 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 1:29
ansriharsha9-Jul-09 1:29 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 1:47
professionalEddy Vluggen9-Jul-09 1:47 
GeneralRe: Numeric Format problem Pin
ansriharsha9-Jul-09 2:40
ansriharsha9-Jul-09 2:40 
QuestionRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 2:51
professionalEddy Vluggen9-Jul-09 2:51 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 3:47
ansriharsha9-Jul-09 3:47 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 3:57
professionalEddy Vluggen9-Jul-09 3:57 
AnswerRe: Numeric Format problem Pin
ansriharsha9-Jul-09 4:33
ansriharsha9-Jul-09 4:33 
GeneralRe: Numeric Format problem Pin
Eddy Vluggen9-Jul-09 6:33
professionalEddy Vluggen9-Jul-09 6:33 
AnswerRe: Numeric Format problem Pin
ansriharsha17-Jul-09 0:50
ansriharsha17-Jul-09 0:50 
QuestionPlease Help... Pin
mjawadkhatri8-Jul-09 23:00
mjawadkhatri8-Jul-09 23:00 
AnswerRe: Please Help... Pin
Pete O'Hanlon8-Jul-09 23:16
mvePete O'Hanlon8-Jul-09 23:16 
GeneralRe: Please Help... Pin
Luc Pattyn9-Jul-09 9:42
sitebuilderLuc Pattyn9-Jul-09 9:42 
AnswerRe: Please Help... Pin
Blue_Boy8-Jul-09 23:26
Blue_Boy8-Jul-09 23:26 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 0:00
mjawadkhatri9-Jul-09 0:00 
AnswerRe: Please Help... Pin
J4amieC9-Jul-09 0:47
J4amieC9-Jul-09 0:47 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 0:54
mjawadkhatri9-Jul-09 0:54 
GeneralRe: Please Help... Pin
Pete O'Hanlon9-Jul-09 1:01
mvePete O'Hanlon9-Jul-09 1:01 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 1:21
mjawadkhatri9-Jul-09 1:21 
GeneralRe: Please Help... Pin
Pete O'Hanlon9-Jul-09 1:25
mvePete O'Hanlon9-Jul-09 1:25 
GeneralRe: Please Help... Pin
mjawadkhatri9-Jul-09 1:50
mjawadkhatri9-Jul-09 1:50 
QuestionHelp Please Email Text Box Pin
Danie de Kock8-Jul-09 22:21
Danie de Kock8-Jul-09 22:21 
AnswerRe: Help Please Email Text Box Pin
Danie de Kock9-Jul-09 0:18
Danie de Kock9-Jul-09 0:18 
GeneralRe: Help Please Email Text Box Pin
K03069-Jul-09 1:56
K03069-Jul-09 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.