转自:http://kukuto.blog.163.com/blog/static/12758131820103201559207/
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
总结:Handled
本文介绍了一个简单的C#代码示例,展示了如何通过KeyPress事件处理程序限制Windows Forms应用程序中的TextBox仅接受数字输入,同时允许使用退格键。
转自:http://kukuto.blog.163.com/blog/static/12758131820103201559207/
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
总结:Handled
2023

被折叠的 条评论
为什么被折叠?