author
1CommentsJoined November 15th, 2016

Tell us about yourself!

Complete Your Profile
  • urdurd commented on cdog204's instructable Creating a Calculator Visual Studio C#10 months ago
    Creating a Calculator Visual Studio C#

    This worked for meprivate void calculator_KeyPress(object sender, KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) { e.Handled = true; this.textBox1.Text = ""; input += e.KeyChar; this.textBox1.Text += input; } }private void textBox1_KeyPressed(object sender, KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) { e.Handled = true; } }

    View Instructable »