Please excuse me for asking this, I have looked at various different questions relating to this and I still can not get it to implement.
Using the answers I have looked at, I have gathered this, and applied this coding to my text box.
private void TxtBox5_KeyPress(object sender, KeyPressEventArgs e)
{
if (!(Char.IsDigit(e.KeyChar) || (e.KeyChar == (char)Keys.Back)))
e.Handled = true;
}
Now, when I proceed to run the program, I am still able to enter letters into it. I do not know what to do next, so any solution would be great. thanks.