TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sai Yang
NA
136
27.4k
C# how to put comma for a dicimal in textbox?????
Apr 4 2018 6:43 AM
Dear
I have a text box which I want to contain only numbers and put comma for decimal (not dot).
I just use this code on Event Keypress:
if (char.IsNumber(e.KeyChar))
{
}
else
{
e.Handled = e.KeyChar != (char)Keys.Back;
}
This code allows only numbers. It does not match my needed.
How can I do that to allow only number and comma for decimal?
I would appreciate thanks for those solution.
Thank so much.
Reply
Answers (
3
)
Create MD5 Password Encryption in MVC
error occurred during the parsing of a resource