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
Methoun Ahmed
NA
145
102.3k
Keydown Event not working properly
Sep 27 2017 4:01 AM
Here is my code.
private void Total_Amount_KeyDown(object sender, KeyEventArgs e)
{
try
{
double a = Convert.ToDouble(txtOldAmt.Text);
double b = Convert.ToDouble(txtDeposit_Amt.Text);
txtTotal.Text = (a + b).ToString();
}
catch (Exception)
{
MessageBox.Show("Invalid input");
}
}
Reply
Answers (
10
)
Window Service for C# Console Application
How to wrap text value of datatable row's in C#?