Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
10
Reply
Keydown Event not working properly
Methoun Ahmed
Sep 27 2017 4:01 AM
278
Reply
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");
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
10
)
Next Recommended Forum
Window Service for C# Console Application
How to wrap text value of datatable row's in C#?