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
Naeem Khan
975
802
800k
problem in cs file for validation
Dec 3 2009 3:26 AM
hello every one, i have very big problem . i want to create cs file for validation where i can make function for numeric validation and character validation when i m created its give me error i m sending u what kind of function i m making on there please check it and reply me if u know easy way to do same thing then plz let me know.......... code// using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace ContaxSoftware { class Validation { public void price_validation(object sender, KeyPressEventArgs e) { int num = e.KeyChar; if (e.KeyChar == '.' || num == 8) { e.Handled = false; } else if (!char.IsDigit(e.KeyChar)) { e.Handled = true; } } thanks in Advcance
Reply
Answers (
4
)
Delegates
datagridview images