C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Insert Only Digits In TextBox
WhatsApp
hardik deshani
12y
5.3
k
0
0
25
Blog
*Insert This Code In Windows App. Text box Key Press Event*
private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar))
{
}
else if (e.KeyChar == '\b')
{
}
else
{
e.Handled = true;
}
}
Insert Only Digits In TextBox
Recommended related topics
Membership not found