Textbox chỉ nhập số tự nhiên lớn hơn 0 private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) || (e.KeyChar == '.') || ((e.KeyChar == '0') && textBox1.Text =="")) { e.Handled = true; } }